summaryrefslogtreecommitdiffstats
path: root/_layouts/author.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/author.html')
-rw-r--r--_layouts/author.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/_layouts/author.html b/_layouts/author.html
new file mode 100644
index 0000000..7c5cddc
--- /dev/null
+++ b/_layouts/author.html
@@ -0,0 +1,28 @@
+---
+layout: default
+---
+<h1>
+ {{ page.name }}
+</h1>
+<h2>
+ {{ page.position }}
+</h2>
+{{ content }}
+
+<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 %}
+ <li>
+ <a href="{{ post.url | remove: ".html" }}">
+ {{ post.title }} @ {{ post.date | date: site.short_date_format }}
+ </a>
+ </li>
+ {% endfor %}
+</ul>