Merge pull request #3251 from nternetinspired/article-semantics

This commit is contained in:
Matt Rogers 2015-01-02 13:27:07 -06:00
commit 064d6de48d
2 changed files with 8 additions and 8 deletions

View File

@ -1,14 +1,14 @@
--- ---
layout: default layout: default
--- ---
<div class="post"> <article class="post">
<header class="post-header"> <header class="post-header">
<h1 class="post-title">{{ page.title }}</h1> <h1 class="post-title">{{ page.title }}</h1>
</header> </header>
<article class="post-content"> <div class="post-content">
{{ content }} {{ content }}
</article>
</div> </div>
</article>

View File

@ -1,15 +1,15 @@
--- ---
layout: default layout: default
--- ---
<div class="post" itemscope itemtype="http://schema.org/BlogPosting"> <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header"> <header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1> <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p> <p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header> </header>
<article class="post-content" itemprop="articleBody"> <div class="post-content" itemprop="articleBody">
{{ content }} {{ content }}
</article>
</div> </div>
</article>