Skip to content

Commit

Permalink
Merge pull request poole#44 from cbarrick/html5
Browse files Browse the repository at this point in the history
Better HTML 5 semantics
  • Loading branch information
mdo committed Sep 26, 2014
2 parents 406bb1d + c7070d1 commit 53d15be
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
18 changes: 10 additions & 8 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@
<body>

<div class="container content">
<div class="masthead">
<header class="masthead">
<h3 class="masthead-title">
<a href="{{ site.baseurl }}" title="Home">{{ site.title }}</a>
<small>{{ site.tagline }}</small>
</h3>
</div>
</header>

{{ content }}
<main>
{{ content }}
</main>

<div class="footer">
<p>
&copy; {{ site.time | date: '%Y' }}. All rights reserved.
</p>
</div>
<footer class="footer">
<small>
&copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>. All rights reserved.
</small>
</footer>
</div>

</body>
Expand Down
4 changes: 2 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
---

<div class="page">
<article class="page">
<h1 class="page-title">{{ page.title }}</h1>
{{ content }}
</div>
</article>
12 changes: 6 additions & 6 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
layout: default
---

<div class="post">
<article class="post">
<h1 class="post-title">{{ page.title }}</h1>
<span class="post-date">{{ page.date | date_to_string }}</span>
<time datetime="{{ page.date | date_to_xmlschema }}" class="page-date">{{ page.date | date_to_string }}</time>
{{ content }}
</div>
</article>

<div class="related">
<aside class="related">
<h2>Related Posts</h2>
<ul class="related-posts">
{% for post in site.related_posts limit:3 %}
<li>
<h3>
<a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
<small>{{ post.date | date_to_string }}</small>
<small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
</a>
</h3>
</li>
{% endfor %}
</ul>
</div>
</aside>
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<article class="post">
<h1 class="post-title">
<a href="{{ post.url }}">
{{ post.title }}
</a>
</h1>

<span class="post-date">{{ post.date | date_to_string }}</span>
<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date_to_string }}</time>

{{ post.content }}
</div>
</article>
{% endfor %}
</div>

Expand Down

0 comments on commit 53d15be

Please sign in to comment.