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

View File

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