Browse code

Improved support for adding author metadata to pages

Brandon Mathis authored on 29/07/2011 at 20:27:13
Showing 2 changed files
... ...
@@ -1,5 +1,7 @@
1 1
 {% if post.author %}
2 2
   {% assign author = post.author %}
3
+{% elsif page.author %}
4
+  {% assign author = page.author %}
3 5
 {% else %}
4 6
   {% assign author = site.author %}
5 7
 {% endif %}
... ...
@@ -11,7 +11,11 @@ layout: default
11 11
   {{ content }}
12 12
   {% unless page.footer == false %}
13 13
     <footer>
14
-      {% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
14
+      {% if page.date or page.author %}<p class="meta">
15
+        {% if page.author %}{% include post/author.html %}{% endif %}
16
+        {% include post/date.html %}
17
+        {% if page.categories %}{% include post/categories.html %}{% endif %}
18
+      </p>{% endif %}
15 19
       {% unless page.sharing == false %}
16 20
         {% include post/sharing.html %}
17 21
       {% endunless %}