From 6c93a756fea3df39f19a02e088992a79a0711852 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sat, 7 Nov 2020 01:24:59 +0100 Subject: =?UTF-8?q?dodal=20fancy=20stuff;=20kategorije,=20slovenske=20?= =?UTF-8?q?=C5=A1tevilke=20-=20=C5=A1tetje?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _layouts/post.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to '_layouts/post.html') diff --git a/_layouts/post.html b/_layouts/post.html index 4e63808..0046908 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -10,14 +10,18 @@ layout: default {% assign anon = site.authors | where: 'short_name', "anonymous" | first %} - {% if author %} - - {{ author.name }} - + {{ author.name }} {% else %} - - {{ anon.name }} - + {{ anon.name }} {% endif %} + - kategorije: + {% assign i = 1 %} + {% for category in page.categories %} + {% assign i = i | plus: 1 %} + {{ category }}{% + if i < page.categories.size %}, {% elsif i == page.categories.size %} + in + {% endif %}{% endfor %}.

{{ content }} -- cgit v1.2.3