Hello whiny.lol
This commit is contained in:
46
layouts/list.html
Executable file
46
layouts/list.html
Executable file
@@ -0,0 +1,46 @@
|
||||
{{ 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 }}
|
||||
Reference in New Issue
Block a user