diff options
Diffstat (limited to 'blog/znacke.html')
-rw-r--r-- | blog/znacke.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/blog/znacke.html b/blog/znacke.html new file mode 100644 index 0000000..f9bf486 --- /dev/null +++ b/blog/znacke.html @@ -0,0 +1,37 @@ +--- +layout: default +title: značke +--- +<h1> + značke +</h1> +<h2> + {% assign argv = ",značk,značka,znački,značke" | prepend: site.tags.size | split: "," %} + {{ site.tags.size }} {% include slnum.html %} {{ return }} +</h2> +<ul> + {% capture tag_sizes %}{% for tag in site.tags %}{{ tag[1].size | plus: -1000 }} {{ tag[0]}}^{% endfor %}{% endcapture %} + {% assign tags_sorted_by_number_of_posts = tag_sizes | split: "^" | sort %} + {% for pre_processed_tag in tags_sorted_by_number_of_posts %} + {% assign tag_with_size = pre_processed_tag | split: " " %} + {% assign key = tag_with_size[1] %} + {% assign tag = site.tags[key] %} + <li> + <h3 id="{{ key }}"> + {{ key }} + </h3> + <p> + <b> + {% assign argv = ",objav,objava,objavi,objave" | prepend: tag.size | split: "," %} + {{ tag.size }} <!--{% include slnum.html %}-->{{ return }}: + </b> + {% assign i = 1 %} + {% for post in tag %} + <a href="{{ post.url }}">{{ post.title }} @ {{ post.date | date: site.short_date_format }}</a>{% assign i = i | plus: 1 %}{% if i < tag.size %}, + {% elsif i == tag.size %} + in + {% endif %}{% endfor %}. + </p> + </li> + {% endfor %} +</ul> |