{#- boilerplate/tags_coud.html ~~~~~~~~~~~~~~~~~~~~~~~~~~ Sidebar cloud of tags. Min and max for font sizes can be configured, values are in pt. :copyright: Copyright 2012 by IƱigo Serna :copyright: Copyright 2011-2014 by Vlad Riscutia and contributors (see CONTRIBUTORS file) :license: FreeBSD, see LICENSE file -#} {%- set fontsize_min = 8 -%} {%- set fontsize_max = 20 -%}

{{ text_tags_cloud }}

{%- set count_min = 1 %} {%- set count_max = tags.values()|sort|last %} {%- for tag, x in tags|dictsort %} {%- set size = (fontsize_max-fontsize_min)*(x-count_min)/(count_max-count_min or 1) + fontsize_min %} {{ tag }} {%- if not loop.last %}  {%- endif %} {%- endfor %}