tale/_layouts/post.html
2017-03-27 20:46:06 +08:00

31 lines
734 B
HTML

---
layout: default
---
<div class="post">
<div class="post-info">
<span>Written by&nbsp;</span>{{ page.author }}
{% if page.date %}
<br>
<span>on&nbsp;</span><time datetime="{{ page.date }}">{{ page.date | date: "%B %d, %Y" }}</time>
{% endif %}
</div>
<h1 class="post-title">{{ page.title }}</h1>
<div class="post-line"></div>
{{ content }}
</div>
<div class="pagination">
{% if page.next.url %}
<a href="{{ page.next.url | prepend: site.url }}" class="left arrow">&#8592;</a>
{% endif %}
{% if page.previous.url %}
<a href="{{ page.previous.url | prepend: site.url }}" class="right arrow">&#8594;</a>
{% endif %}
<a href="{{ site.baseurl }}/" class="home">home</a>
</div>