hugo-coder-fork/layouts/partials/list.html

20 lines
532 B
HTML
Raw Permalink Normal View History

2018-03-01 01:38:59 +00:00
<section class="container list">
<h1 class="title">
{{- if eq .Kind "taxonomy" -}}
{{- i18n .Data.Singular | title -}}
{{- print ": " -}}
{{- end -}}
{{- .Title -}}
</h1>
2018-03-01 01:38:59 +00:00
<ul>
{{ range .Paginator.Pages }}
<li>
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
<a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
2018-03-01 01:38:59 +00:00
</li>
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</section>