summaryrefslogblamecommitdiffstats
path: root/blog/kategorije.html
blob: 97ea14cb3930534e369d7373061b8845369ccdd3 (plain) (tree)




































                                                                                                                                                                                             
---
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>