template installiert

This commit is contained in:
2026-10-17 08:45:08 +02:00
parent ec2da90945
commit 7532843b67
378 changed files with 13317 additions and 8 deletions
+40
View File
@@ -0,0 +1,40 @@
{{- $pages := where .Pages "Params.displayinlist" "!=" false -}}
{{- if .IsHome -}}
{{- $pages = where .Site.RegularPages "Params.displayinlist" "!=" false -}}
{{- end -}}
{{- $paginator := .Paginate $pages -}}
<!DOCTYPE html>
<html lang="{{ .Site.Language.Locale }}" dir="{{ or .Site.Language.Direction "ltr" }}">
{{ partial "head.html" . }}
<body class="list-body">
<a class="skip-link" href="#main-content">Skip to content</a>
{{ partial "nav-bar.html" . }}
<main id="main-content" class="site-main list-main side-gutter" tabindex="-1">
{{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
<header class="list-header">
<p class="section-kicker">{{ if eq .Kind "term" }}Topic{{ else }}Archive{{ end }}</p>
{{ with .Title | markdownify }}<h1 class="list-header-title">{{ . }}</h1>{{ end }}
{{ if .Description }}<p class="list-header-subtext">{{ .Description }}</p>{{ else if eq .Kind "term" }}<p class="list-header-count">{{ len $pages }} {{ if eq (len $pages) 1 }}article{{ else }}articles{{ end }}</p>{{ end }}
</header>
{{- end }}
{{ with .Content -}}
<section class="list-header-content">
{{ . }}
</section>
{{- end }}
<div class="post-list">
{{- range $paginator.Pages -}}
{{ .Render "li" }}
{{- end }}
</div>
{{ if or ($paginator.HasPrev) ($paginator.HasNext) -}}
<nav class="pagination-nav" aria-label="Writing pagination">
{{ if $paginator.HasPrev }}<a href="{{ $paginator.Prev.URL }}" class="pagination-newer pagination-text">&larr; Newer Posts</a>{{ end }}
{{ if $paginator.HasNext }}<a href="{{ $paginator.Next.URL }}" class="pagination-older pagination-text">Older Posts &rarr;</a>{{ end }}
</nav>
{{- end }}
</main>
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
</html>