Permalink
Browse files

add author to posts

  • Loading branch information...
1 parent cd8dcf6 commit 4fcab419834ed11f103dd630f671a33ea86de5bd @jerodsanto jerodsanto committed Aug 31, 2012
Showing with 8 additions and 2 deletions.
  1. +4 −1 _layouts/post.html
  2. +4 −1 blog/index.html
View
@@ -8,7 +8,10 @@
{% if page.subtitle %}
<h2>{{ page.subtitle }}</h2>
{% endif %}
- <p class="date">{{ page.date | date: "%B %d, %Y" }}</p>
+ <p class="date">
+ by {% if page.author %} {{ page.author }} {% else %} Jerod {% endif %}
+ on {{ page.date | date: "%B %d, %Y" }}
+ </p>
</hgroup>
<div class="content">
{{ content }}
View
@@ -10,7 +10,10 @@
{% if post.subtitle %}
<h2>{{ post.subtitle }}</h2>
{% endif %}
- <p class="date">{{ post.date | date: "%B %d, %Y" }}</p>
+ <p class="date">
+ by {% if post.author %} {{ post.author }} {% else %} Jerod {% endif %}
+ on {{ post.date | date: "%B %d, %Y" }}
+ </p>
</hgroup>
<div class="content">
{{ post.content }}

0 comments on commit 4fcab41

Please sign in to comment.