hugo-theme-flat/layouts/_default/term.html

40 lines
1.1 KiB
HTML
Raw Normal View History

2022-05-18 05:45:20 +00:00
{{ define "main" }}
<div>
{{ if trim .Content " \n" }}
<div class="content archive-hint">{{ .Content }}</div>
{{ end }}
<section id="archive">
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="group">
<h3 class="key">
{{ .Key }}
</h3>
2022-05-18 05:45:20 +00:00
{{ range .Pages }}
<div class="value">
<time class="date" datetime="{{ .PublishDate }}">{{ .PublishDate.Format "01/02" }}</time>
2022-05-18 05:45:20 +00:00
<div class="title">
2022-05-18 05:45:20 +00:00
<a href="{{ .Permalink }}">{{ .Title }}</a>
2022-05-18 05:45:20 +00:00
{{ with .Params.tags }}
{{ range . }}
2022-09-04 11:11:04 +00:00
<a class="tags" href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
2022-05-18 05:45:20 +00:00
{{ end }}
</div>
2022-05-18 05:45:20 +00:00
</div>
{{ end }}
2022-05-18 05:45:20 +00:00
</div>
{{ end }}
2022-05-18 05:45:20 +00:00
</section>
</div>
2022-05-18 05:45:20 +00:00
{{ end }}