summaryrefslogtreecommitdiffstats
path: root/_layouts/author.html
blob: 7c5cddc0f8c0ab6c1af14b19ef7bfcc35ba9ce5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>