d8819d5eee
":date_medium" matches "Jan 2, 2006" in english locales while adapting to hugo's configured locale.
18 lines
533 B
HTML
18 lines
533 B
HTML
{{ define "main" }}
|
|
{{ if isset .Data "Term" }}
|
|
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
|
|
{{ else }}
|
|
<h1 class="page-title">All articles</h1>
|
|
{{ end }}
|
|
|
|
<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 ":date_medium" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
|
|
</li>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</ul>
|
|
{{ end }}
|