summaryrefslogtreecommitdiffstats
path: root/_includes/posts_by_author.html
blob: c0fbb4c331859e912844b78c55952db9b8b68037 (plain) (blame)
1
2
3
4
5
6
7
{% comment %} argv: authorname {% endcomment %}
{% assign posts_by_author = site.posts | where: "author", argv[0] %}
{% assign author_not_specified = site.posts | where: 'author', nil %}
{% if argv[0] == "anonymous" %}
	{% assign posts_by_author = author_not_specified | concat: posts_by_author %}
{% endif %}
{% assign return = posts_by_author | sort: "date" | reverse %}