diff options
author | m-r-r <raybaudroigm@gmail.com> | 2012-08-18 13:06:55 +0200 |
---|---|---|
committer | m-r-r <raybaudroigm@gmail.com> | 2012-08-18 13:06:55 +0200 |
commit | 2d472973248aaf307809248a30bac7d27b04411f (patch) | |
tree | 1e48bda05a3dcbfc912722183b8f44c4ecdf8eb5 /dev-random2/templates | |
parent | 7e147d55198addaf186fddb32c098305b3dbe4cb (diff) | |
download | pelican-themes-2d472973248aaf307809248a30bac7d27b04411f.tar.gz |
[dev-random2] Improved the tag cloud
Diffstat (limited to 'dev-random2/templates')
-rw-r--r-- | dev-random2/templates/tags.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/dev-random2/templates/tags.html b/dev-random2/templates/tags.html index ad5d2ea..e967527 100644 --- a/dev-random2/templates/tags.html +++ b/dev-random2/templates/tags.html @@ -5,8 +5,13 @@ <script type="text/javascript" src="{{ SITEURL }}/theme/js/microTags.js"></script> <script> function tag_cloud_init() { - var el = document.getElementById("tag-cloud"); - window._tagcloud = new microTags(el); + var ul = document.getElementById("tag-cloud"); + window.tagCloud = new microTags(ul, { + 'min-size': .95, + 'max-size': 3.5, + 'min-angle': -8, + 'max-angle': 8 + }); } if (window.addEventListener) window.addEventListener("load", tag_cloud_init, false); else if (window.attachEvent) window.attachEvent("onload", tag_cloud_init); @@ -20,7 +25,7 @@ <h1>Mots-clés</h1> <ul id="tag-cloud"> {% for tag, articles in tags %} - <li data-count="{{ articles|count }}"><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li> + <li data-count="{{ articles|count }}" title="{{ articles|count }} article(s)"><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li> {% endfor %} </ul> {% endblock content -%} |