post.html 1.21 KB
---
layout: default
pagestyle: posts
---
<header class="section post-title">
	<h1>
		<a href="{{ site.base-url }}{{ page.url }}">
			{{ page.title }}
		</a>
	</h1>
	<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">
		{{ page.date | date: "%B %e, %Y" }}
	</time>
	{% if page.subtitle %}
	<h2>
		{{ page.subtitle }}
	</h2>
	{% endif %}
	{% if page.tags.size > 0 %}
	<ol class="tags-list">
		{% for page_tag in page.tags %}
			{% assign tag = site.data.tags[page_tag] %}
			{% if tag %}
				<li><a class="tag" href="/blog/tag/{{ page_tag }}/">{{ tag.name }}</a></li>
			{% endif %}
		{% endfor %}
	</ol>
	{% endif %}
</header>

{% assign sections = content | split: site.section_separator %}
{% for section in sections %}
<section>
	{{ section }}
</section>
{% endfor %}

<nav class="page-links section">
{% if page.previous %}
<a class="page-prev" href="{{ site.base-url }}{{ page.previous.url }}" title="{{ page.previous.title }}">
	<span class="prev"></span>{{ page.previous.title | truncate: 30 }}
</a>
{% endif %}
{% if page.next %}
<a class="page-next" href="{{ site.base-url }}{{ page.next.url }}" title="{{ page.next.title }}">
	{{ page.next.title | truncate: 30 }}<span class="next"></span>
</a>
{% endif %}
</nav>