Initial checkin

This commit is contained in:
Pim van Pelt
2022-09-04 14:08:48 +02:00
commit fc0ea29973
110 changed files with 9548 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{{ define "main" }}
<main>
{{- /* Hardcoded values for identifying whether we're looking at a tag or category */ -}}
{{ if or (eq .Data.Plural "categories") (eq .Data.Singular "category") }}
<h1>Category: {{ .Title }}</h1>
{{ else if or (eq .Data.Plural "tags") (eq .Data.Singular "tag") }}
<h1>Tag: {{ .Title }}</h1>
{{ end }}
{{- if .Pages -}}
{{- $pages := (where .Pages ".Draft" false) -}}
{{- with .Site.Params.list.paginate | default .Site.Params.paginate -}}
{{- $pages = $.Paginate $pages . -}}
{{- else -}}
{{- $pages = .Paginate $pages -}}
{{- end -}}
{{- range $pages.Pages -}}
<article class="archive-item">
{{ partial "blog-entry-summary.html" . }}
</article>
{{- end -}}
{{ partial "pagination.html" . }}
{{- end -}}
</main>
{{ end }}

View File

@ -0,0 +1,11 @@
{{ define "main" }}
<main>
<h1>All {{ .Title }}</h1>
<ul>
{{ range .Data.Terms.Alphabetical }}
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})</li>
{{ end }}
</ul>
</main>
{{ end }}