Browse Source

Turned the tag list into a tag cloud

master
Julio Biason 4 years ago
parent
commit
e9a3b25edf
  1. 7
      templates/tags/list.html

7
templates/tags/list.html

@ -4,6 +4,12 @@
<div class="post">
<h1 class="post-title">all tags</h1>
{% for term in terms %}
{% set size = term.pages | length + 90 %}
<span style="font-size: {% if size > 200 %}200{% else %}{{ size }}{% endif %}%"><a href=" {{ term.permalink | safe }}">{{ term.name }}</a></span>
{% endfor %}
<!--
<ul>
{% for term in terms %}
<li class="tag-list">
@ -13,5 +19,6 @@
</li>
{% endfor %}
</ul>
-->
</div>
{% endblock content %}

Loading…
Cancel
Save