diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-07-29 16:27:13 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-07-29 16:27:25 -0400 |
commit | d6744967fa7572101202d239727b7983004e9603 (patch) | |
tree | ce6852ec4de387f6080def3dcff2e7a0ddb3f1b1 /.themes | |
parent | 20de112526bcf34004e22d2c89c01f4f5154a03d (diff) | |
download | my_new_personal_website-d6744967fa7572101202d239727b7983004e9603.tar.xz my_new_personal_website-d6744967fa7572101202d239727b7983004e9603.zip |
Improved support for adding author metadata to pages
Diffstat (limited to '.themes')
-rw-r--r-- | .themes/classic/source/_includes/post/author.html | 2 | ||||
-rw-r--r-- | .themes/classic/source/_layouts/page.html | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/.themes/classic/source/_includes/post/author.html b/.themes/classic/source/_includes/post/author.html index b2db9043..83dd6a89 100644 --- a/.themes/classic/source/_includes/post/author.html +++ b/.themes/classic/source/_includes/post/author.html @@ -1,5 +1,7 @@ {% if post.author %} {% assign author = post.author %} +{% elsif page.author %} + {% assign author = page.author %} {% else %} {% assign author = site.author %} {% endif %} diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html index a2fc41ed..34cb3430 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -11,7 +11,11 @@ layout: default {{ content }} {% unless page.footer == false %} <footer> - {% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %} + {% if page.date or page.author %}<p class="meta"> + {% if page.author %}{% include post/author.html %}{% endif %} + {% include post/date.html %} + {% if page.categories %}{% include post/categories.html %}{% endif %} + </p>{% endif %} {% unless page.sharing == false %} {% include post/sharing.html %} {% endunless %} |