blob: f14da95a177beaf91d4239e3dba2610ab1004c1b (
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>
{% 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>
|