Refactor post template
- add article tags around post content - creates post header - add conditionals for extra options in meta
This commit is contained in:
parent
1b54afe67a
commit
fcd2383de3
|
@ -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">
|
||||||
|
|
||||||
|
<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 }}
|
{{ content }}
|
||||||
|
</article>
|
||||||
|
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue