Refactor post template

- add article tags around post content
- creates post header
- add conditionals for extra options in meta
This commit is contained in:
Joel Glovier 2014-02-15 23:04:44 -05:00
parent 1b54afe67a
commit fcd2383de3
1 changed files with 11 additions and 5 deletions

View File

@ -1,9 +1,15 @@
--- ---
layout: default layout: default
--- ---
<h2>{{ page.title }}</h2>
<p class="meta">{{ page.date | date_to_string }}</p>
<div class="post"> <div class="post">
{{ content }}
<header class="post-header">
<h1>{{ page.title }}</h1>
<p class="meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header>
<article class="post-content">
{{ content }}
</article>
</div> </div>