From e01fec938d2d146bc490438ba93f0b9c3f3f192d Mon Sep 17 00:00:00 2001 From: sijanec Date: Sat, 7 Nov 2020 17:35:53 +0100 Subject: =?UTF-8?q?dodal=20zna=C4=8Dke,=20.html=20na=20linke,=20zna=C4=8Dk?= =?UTF-8?q?e=20in=20kategorije=20po=20velikosti?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _layouts/author.html | 2 +- _layouts/post.html | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to '_layouts') diff --git a/_layouts/author.html b/_layouts/author.html index 44e62e5..226f1bb 100644 --- a/_layouts/author.html +++ b/_layouts/author.html @@ -15,7 +15,7 @@ layout: default {% include posts_by_author.html %} {% for post in return %}
  • - + {{ post.title }} @ {{ post.date | date: site.short_date_format }}
  • diff --git a/_layouts/post.html b/_layouts/post.html index 0046908..84f6d39 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -10,18 +10,27 @@ 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 }}{% + {{ category }}{% if i < page.categories.size %}, {% elsif i == page.categories.size %} in {% endif %}{% endfor %}. + - značke: + {% assign i = 1 %} + {% for tag in page.tags %} + {% assign i = i | plus: 1 %} + {{ tag }}{% + if i < page.tags.size %}, {% elsif i == page.tags.size %} + in + {% endif %}{% endfor %}. +

    {{ content }} -- cgit v1.2.3