hugo-theme-minima/layouts/_default/list.html
2021-08-29 23:55:45 +08:00

17 lines
No EOL
431 B
HTML

{{ define "main" }}
<main>
{{ if isset .Data "Term" }}
<h2>{{ .Data.Singular | title }} - "{{ .Data.Term }}"</h2>
{{ else }}
{{ end }}
<div>
{{ range .Data.Pages }}
<div class="flex sm:flex-col my-5 sm:mb-6 sm:mt-3">
<div class="min-w-32 sm:mb-2">{{ dateFormat .Site.Params.timeformat .Date }}</div>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</div>
{{ end }}
</div>
</main>
{{ end }}