hugo-theme-noteworthy/layouts/_default/taxonomy.html
2020-04-18 00:15:56 -05:00

25 lines
735 B
HTML

{{ define "main" }}
<!-- Page that displays after clicking on a post's tag -->
<h1>Tagged "{{ .Data.Term }}"</h1>
{{range .Pages}}
<!-- Display the posts with the tag -->
<article>
<h2>
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</h2>
<div>
<p>{{ .Summary }}</p>
{{ if (and (.Site.Params.showReadMore) (.Truncated)) }}
<p><a href="{{ .RelPermalink }}">Read more...</a></p>
{{ end }}
</div>
<div class="post-footer">
<time>{{ .Date.Format "January 2, 2006" }}</time>
</div>
</article>
{{ end }}
{{ end }}