From 4810471fcc70d938f48cc865e111a3d66bb13ab4 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sat, 7 Nov 2020 18:23:30 +0100 Subject: prettyfied some urls --- _authors/anton.md | 1 + _config.yml | 3 +++ _layouts/post.html | 8 ++++---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/_authors/anton.md b/_authors/anton.md index 4941dac..2b71768 100644 --- a/_authors/anton.md +++ b/_authors/anton.md @@ -2,6 +2,7 @@ short_name: anton name: Anton Luka Šijanec position: Administrator +layout: author --- Anton Luka Šijanec je administrator tega spletišča. diff --git a/_config.yml b/_config.yml index 5fa1133..7b8a0be 100644 --- a/_config.yml +++ b/_config.yml @@ -27,6 +27,9 @@ collections: authors: output: true permalink: /blog/avtorji/:name + posts: + output: true + permalink: /blog/:year/:month/:day/:title:output_ext defaults: - scope: diff --git a/_layouts/post.html b/_layouts/post.html index 84f6d39..86c1f10 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -10,15 +10,15 @@ 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 %}. @@ -26,7 +26,7 @@ layout: default {% assign i = 1 %} {% for tag in page.tags %} {% assign i = i | plus: 1 %} - {{ tag }}{% + {{ tag }}{% if i < page.tags.size %}, {% elsif i == page.tags.size %} in {% endif %}{% endfor %}. -- cgit v1.2.3