Add Microformat goodness

This commit is contained in:
Michael Rose
2013-05-29 08:43:05 -04:00
parent b127fca8ae
commit 6e2befb34f
4 changed files with 12 additions and 12 deletions

View File

@@ -25,12 +25,12 @@
{% include author-bio.html %}
</div>
<div id="index">
<div id="index" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
{% for post in site.posts %}
<article>
<h2><a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}">{{ post.title }}</a></h2>
<article itemscope itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
<h2 itemprop="headline"><a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}">{{ post.title }}</a></h2>
<p class="byline"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time></p>
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
<p itemprop="text">{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
</article>
{% endfor %}
</div><!-- /#index -->