47 lines
925 B
HTML
Executable File
47 lines
925 B
HTML
Executable File
{{ define "main" }}
|
|
<section class="hero page">
|
|
<div class="hero-inner width-page">
|
|
{{ if eq .Kind "term" }}
|
|
{{ with .Parent }}
|
|
<a class="link meta" href="{{ .RelPermalink }}">{{ .Data.Singular | title }}</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ with .Description }}
|
|
<p>{{ . }}</p>
|
|
{{ end }}
|
|
|
|
{{ if eq .Kind "term" }}
|
|
<p>{{ len .Pages }} pages</p>
|
|
{{ end }}
|
|
|
|
{{ if eq .Kind "taxonomy" }}
|
|
<p>{{ len .Pages }} {{ .Data.Plural }}</p>
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
|
|
<div class="container width-page">
|
|
|
|
{{ if .Content }}
|
|
<div class="prose">
|
|
{{ .Content }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ $pages := .Data.Pages }}
|
|
{{ $paginator := .Paginate $pages 8 }}
|
|
<div class="cards">
|
|
{{ range $paginator.Pages }}
|
|
{{ partial "card.html" . }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ partial "pagination-controls.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|