diff options
Diffstat (limited to '_layouts/post.html')
-rw-r--r-- | _layouts/post.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..4e63808 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,23 @@ +--- +layout: default +--- +<h1> + {{ page.title }} +</h1> +<p> + {{ page.date | date: site.short_date_format }} + {% assign author = site.authors | where: 'short_name', page.author | first %} + {% assign anon = site.authors | where: 'short_name', "anonymous" | first %} + - + {% if author %} + <a href="{{ author.url | remove: ".html" }}"> + {{ author.name }} + </a> + {% else %} + <a href="{{ anon.url | remove: ".html" }}"> + {{ anon.name }} + </a> + {% endif %} +</p> + +{{ content }} |