summaryrefslogtreecommitdiffstats
path: root/blog/kategorije.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--blog/kategorije.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/blog/kategorije.html b/blog/kategorije.html
new file mode 100644
index 0000000..97ea14c
--- /dev/null
+++ b/blog/kategorije.html
@@ -0,0 +1,37 @@
+---
+layout: default
+title: kategorije
+---
+<h1>
+ kategorije
+</h1>
+<h2>
+ {% assign argv = ",kategorij,kategorija,kategoriji,kategorije" | prepend: site.categories.size | split: "," %}
+ {{ site.categories.size }} {% include slnum.html %} {{ return }}
+</h2>
+<ul>
+ {% capture category_sizes %}{% for category in site.categories %}{{ category[1].size | plus: -1000 }} {{ category[0]}}^{% endfor %}{% endcapture %}
+ {% assign categories_sorted_by_number_of_posts = category_sizes | split: "^" | sort %}
+ {% for pre_processed_category in categories_sorted_by_number_of_posts %}
+ {% assign category_with_size = pre_processed_category | split: " " %}
+ {% assign key = category_with_size[1] %}
+ {% assign category = site.categories[key] %}
+ <li>
+ <h3 id="{{ key }}">
+ {{ key }}
+ </h3>
+ <p>
+ <b>
+ {% assign argv = ",objav,objava,objavi,objave" | prepend: category.size | split: "," %}
+ {{ category.size }} <!--{% include slnum.html %}-->{{ return }}:
+ </b>
+ {% assign i = 1 %}
+ {% for post in category %}
+ <a href="{{ post.url }}">{{ post.title }} @ {{ post.date | date: site.short_date_format }}</a>{% assign i = i | plus: 1 %}{% if i < category.size %},
+ {% elsif i == category.size %}
+ in
+ {% endif %}{% endfor %}.
+ </p>
+ </li>
+ {% endfor %}
+</ul>