diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-11-05 18:44:37 +0100 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-11-05 18:44:37 +0100 |
commit | 0a267e4172dc893963feb27fc5d1f405f9e6d7b1 (patch) | |
tree | 83f33138cfa709465ef728ccafd19f395439097a /_layouts/post.html | |
download | sijanec.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/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 }} |