Add tags listing support

This commit is contained in:
R. Tyler Croy 2017-01-08 14:41:45 -08:00
parent 218472826c
commit 57fe5c8157
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 20 additions and 0 deletions

View File

@ -9,6 +9,17 @@ layout: default
</header>
<div class="content post">
<h1 class="post-title">{{ page.title }}</h1>
<div class="post-tags">
<small>&middot;</small>
{% for tag in page.tags %}
<span>
<small>
<a href="/tag/{{ tag }}.html">{{ tag }}</a>
&middot;
</small>
</span>
{% endfor %}
</div>
<div class="post-date">
<time>{{ page.date | date_to_string }}</time>
</div>

View File

@ -21,6 +21,15 @@ title: Home
<header class="post-header">
<h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<span class="post-meta"><time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date_to_string }}</time> {{!tags prefix="on "}}</span>
<small>&middot;</small>
{% for tag in post.tags %}
<span>
<small>
<a href="/tag/{{ tag }}.html">{{ tag }}</a>
&middot;
</small>
</span>
{% endfor %}
</header>
<section class="post-excerpt">