hugo-theme-noteworthy/layouts/_default/taxonomy.html

26 lines
759 B
HTML
Raw Normal View History

2020-02-02 17:13:02 +00:00
{{ define "main" }}
<!-- Page that displays after clicking on a post's tag -->
2020-04-18 20:18:57 +00:00
<h1>{{ i18n "tagged" }} "{{ .Data.Term }}"</h1>
2020-02-02 17:13:02 +00:00
{{range .Pages}}
<!-- Display the posts with the tag -->
<article>
<h2>
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</h2>
<div>
2020-04-18 05:15:49 +00:00
<p>{{ .Summary }}</p>
{{ if (and (.Site.Params.showReadMore) (.Truncated)) }}
2020-04-18 20:18:57 +00:00
<p><a href="{{ .RelPermalink }}">{{ i18n "read_more" }}</a></p>
2020-04-18 05:15:49 +00:00
{{ end }}
2020-02-02 17:13:02 +00:00
</div>
<div class="post-footer">
<time>{{ .Date.Format "January 2, 2006" }}</time>
</div>
</article>
{{ end }}
2020-04-18 20:18:57 +00:00
{{ end }}