summaryrefslogtreecommitdiffstats
path: root/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/author.html11
-rw-r--r--_layouts/default.html2
-rw-r--r--_layouts/post.html16
3 files changed, 14 insertions, 15 deletions
diff --git a/_layouts/author.html b/_layouts/author.html
index 7c5cddc..44e62e5 100644
--- a/_layouts/author.html
+++ b/_layouts/author.html
@@ -11,14 +11,9 @@ layout: default
<h2>objave:</h2>
<ul>
- {% assign filtered_posts = site.posts | where: "author", page.short_name %}
- {% assign author_not_specified = site.posts | where: 'author', nil %}
- {% if page.short_name == "anonymous" %}
- {% assign filtered_posts =
- author_not_specified | concat: filtered_posts %}
- {% endif %}
- {% assign filtered_posts = filtered_posts | sort: "date" | reverse %}
- {% for post in filtered_posts %}
+ {% assign argv = page.short_name | split: "," %}
+ {% include posts_by_author.html %}
+ {% for post in return %}
<li>
<a href="{{ post.url | remove: ".html" }}">
{{ post.title }} @ {{ post.date | date: site.short_date_format }}
diff --git a/_layouts/default.html b/_layouts/default.html
index a61df81..af33326 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -6,7 +6,7 @@
{{ page.title }} :: {{ site.name }}
</title>
<link rel=stylesheet href=/assets/css/styles.css />
- <meta name=viewport content=width=device-width,initial-scale=1.0 />
+ <meta name=viewport content="width=device-width,initial-scale=1.0" />
{% feed_meta %}
{% seo %}
{% if jekyll.environment == "production" %}
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 %}
- <a href="{{ author.url | remove: ".html" }}">
- {{ author.name }}
- </a>
+ <a href="{{ author.url | remove: ".html" }}">{{ author.name }}</a>
{% else %}
- <a href="{{ anon.url | remove: ".html" }}">
- {{ anon.name }}
- </a>
+ <a href="{{ anon.url | remove: ".html" }}">{{ anon.name }}</a>
{% endif %}
+ - kategorije:
+ {% assign i = 1 %}
+ {% for category in page.categories %}
+ {% assign i = i | plus: 1 %}
+ <a href="/kategorije#{{ category }}">{{ category }}</a>{%
+ if i < page.categories.size %}, {% elsif i == page.categories.size %}
+ in
+ {% endif %}{% endfor %}.
</p>
{{ content }}