summaryrefslogtreecommitdiffstats
path: root/kategorije.html
blob: f14da95a177beaf91d4239e3dba2610ab1004c1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
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>
	{% assign cats = site.categories | sort %}
	{% for category in cats reversed %} <!-- 0 je ime, 1 je array objav -->
		<li>
			<h3 id="{{ category[0] }}">
				{{ category[0] }}
			</h3>
			<p>
				<b>
					{% assign argv = ",objav,objava,objavi,objave" | prepend: category[1].size | split: "," %}
					{{ category[1].size }} <!--{% include slnum.html %}-->{{ return }}:
				</b>
				{% assign i = 1 %}
				{% for post in category[1] %}
					<a href="{{ post.url }}">{{ post.title }} @ {{ post.date | date: site.short_date_format }}</a>{% assign i = i | plus: 1 %}{% if i < category[1].size %},
					{% elsif i == category[1].size %}
						in
					{% endif %}{% endfor %}.
			</p>
		</li>
	{% endfor %}
</ul>