themu/layouts/_default/term.html

18 lines
540 B
HTML
Raw Normal View History

{{ define "main" }}
{{ if isset .Data "Term" }}
2023-07-29 17:04:05 +03:00
<h1>Все посты - "{{ .Data.Term }}"</h1>
{{ else }}
2023-07-29 17:04:05 +03:00
<h1 class="page-title">Все посты</h1>
{{ end }}
2020-04-08 21:44:29 +03:00
<ul class="posts">
{{- range .Data.Pages -}}
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
</li>
{{- end -}}
{{- end -}}
</ul>
{{ end }}