Skip to content

Commit

Permalink
Add author to the post layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad AbuShady committed May 8, 2015
1 parent 686d2d2 commit d9dbacc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
---
<div itemscope itemtype='http://schema.org/Article' class='post'>
<h1 itemprop='name' class="post-title">{{ page.title }}</h1>
<span itemprop='datePublished' content='{{page.date}}' class='post-date'>{{ page.date | date_to_string }}</span>
<div class='post-date'>
<span itemprop='datePublished' content='{{page.date}}' class=''>{{ page.date | date_to_string }}</span>
&middot;
{% if page.author %}
<span><a itemprop='author' href='{{page.author.url}}' rel='author' target='_blank'>{{ page.author.name }}</a></span>
{% else %}
<span><a itemprop='author' href='{{site.author.url}}' rel='author' target='_blank'>{{ site.author.name }}</a></span>
{% endif %}
</div>
{% if page.tags %}
<span class='post-date'>
{% for tag in page.tags %}
Expand Down

0 comments on commit d9dbacc

Please sign in to comment.