Update tag pages

This commit is contained in:
Ariejan de Vroom 2015-07-02 10:36:38 +02:00
parent 412164bcd8
commit 05509d9f60
2 changed files with 8 additions and 9 deletions

View File

@ -3,14 +3,13 @@
<section class="posts">
{{ range .Data.Pages }}
<article id="{{ .Slug }}" class="teaser-post">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<time class="date">{{ .Date.Format "2 January, 2006" }}</time>
<ul class="tags">
{{ range .Params.tags }}
<li><a href="/tags/{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
<div class="separator"></div>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<p class="meta">
<time class="date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2 January, 2006" }}</time>
• tagged {{ partial "post/tag/list" . }}
• {{ .WordCount }} words
• ~{{ .ReadingTime }} minutes
</p>
</article>
{{ end }}
</section>

View File

@ -1 +1 @@
<a href="{{ . | urlize }}">{{ . }}</a>
<a href="/tags/{{ . | urlize }}">{{ . }}</a>