summaryrefslogblamecommitdiffstats
path: root/blog/kategorije.html
blob: dc21a4e0bd7526a9f35a6266df114d47734d8452 (plain) (tree)
1
2
3
4
5
6




                 
                                                                                     






























                                                                                                                                                                                             
---
layout: default
title: kategorije
---
<h1>
	<a href=objave.html>objave</a> | kategorije | <a href=znacke.html>značke</a>
</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>