summaryrefslogtreecommitdiffstats
path: root/_layouts/author.html
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-11-05 18:44:37 +0100
committersijanec <sijanecantonluka@gmail.com>2020-11-05 18:44:37 +0100
commit0a267e4172dc893963feb27fc5d1f405f9e6d7b1 (patch)
tree83f33138cfa709465ef728ccafd19f395439097a /_layouts/author.html
downloadsijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.gz
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.bz2
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.lz
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.xz
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.tar.zst
sijanec.eu-0a267e4172dc893963feb27fc5d1f405f9e6d7b1.zip
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>