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

27 lines
835 B
HTML

<section class="container list">
<h1 class="title">
{{- .Title -}}
</h1>
{{- if eq .Kind "taxonomy" -}}
<div class="list-meta">
<span class="meta-tag">
{{- if eq .Data.Singular "category" -}}
<span class="icon svg-icon">{{ partial "svg/folder.svg" }}</span>
{{- else if eq .Data.Singular "tag" -}}
<span class="icon svg-icon">{{ partial "svg/tag.svg" }}</span>
{{- end -}}
{{- .Data.Term -}}
</span>
</div>
{{- end -}}
<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>
</li>
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</section>