From 16f52b7bef745097f7076dde76715db378b54343 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 19 Mar 2025 14:56:26 +0000 Subject: first commit --- layouts/_default/baseof.html | 38 ++++++++++++++++++++++++++++++++++++++ layouts/_default/list.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ layouts/_default/single.html | 17 +++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..56818d7 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,38 @@ + + + + + + + {{- partial "favicon.html" . -}} + + {{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title + }}{{- end }} + + + {{- partial "seo_tags.html" . -}} + + + + {{ with .OutputFormats.Get "rss" -}} {{ printf ` + + ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{- + partial "custom_head.html" . -}} + + + + + + + +
{{- partial "header.html" . -}}
+
{{- block "main" . }}{{- end }}
+ + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..49da071 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,44 @@ +{{ define "main" }} + + {{ if .Data.Singular }} +

Filtering for "{{ .Title }}"

+ + Remove filter + + {{ end }} + + +
+ {{ $currentSection := .Section }} + {{ range $tag, $taxonomy := .Site.Taxonomies.tags }} + {{ $count:= 0 }} + {{ range $taxonomy.Pages }} + {{ if eq .Section $currentSection }} + {{ $count = add $count 1 }} + {{ end }} + {{ end }} + {{ if gt $count 0 }} + #{{ $taxonomy.Page.Title }}  + {{ end }} + {{ end }} +
+
+
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..5d0d520 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,17 @@ +{{ define "main" }} {{ if eq .Type "blog" }}{{ if not .Params.menu }} +

{{ .Title }}

+

+ + + +

+{{ end }}{{ end }} + {{ .Content }} +

+ {{ range (.GetTerms "tags") }} + #{{ lower .LinkTitle }} + {{ end }} +

+{{ end }} -- cgit v1.2.3