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,13 +25,13 @@
{% include author-bio.html %}
</div>
<div id="index">
<div id="index" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/Blog">
<h3>Latest Articles</h3>
<hr />
{% for post in site.categories.articles limit:5 %}
<article>
<h2><a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}">{{ post.title }}</a></h2>
<p>{% if page.description %}{{ page.description }}{% else %}{{ page.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
<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 itemprop="text">{% if page.description %}{{ page.description }}{% else %}{{ page.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
</article>
{% endfor %}
</div><!-- /#index -->