1
Fork 0

Include markup for marking pubdate and author.

Via http://mislav.uniqpath.com/2012/08/authorship/
This commit is contained in:
Jan-Erik Rediger 2012-08-07 21:45:09 +02:00
parent b60c1ba94f
commit f1fc0fd21b
2 changed files with 12 additions and 2 deletions

View file

@ -3,7 +3,12 @@
<a href="{{post.url}}">{{post.title}}</a>
</h2>
{% if post.date %}
<p class="date">{{post.date | date_to_string}} (by Jan-Erik)</p>
<p class="date">
<time pubdate class=published datetime="{{post.date}}">
{{post.date | date_to_string}}
</time>
(by <span rel=author>Jan-Erik</span>)
</p>
{% endif %}
{{post.content}}

View file

@ -6,7 +6,12 @@ layout: default
<a href="{{page.url}}">{{page.title}}</a>
</h2>
{% if page.date %}
<p class="date">{{page.date | date_to_string}} (by Jan-Erik)</p>
<p class="date">
<time pubdate class=published datetime="{{page.date}}">
{{page.date | date_to_string}}
</time>
(by <span rel=author>Jan-Erik</span>)
</p>
{% endif %}
{{content}}