From 80ad356d7ad90f4753e15e8af7254723894e2b40 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Sat, 29 Aug 2026 15:36:31 -0700 Subject: --- layouts/baseof.html | 9 ++++++++- layouts/home.html | 11 +++++++++++ layouts/page.html | 10 ++-------- layouts/section.html | 4 ++-- layouts/taxonomy.html | 10 +++++----- 5 files changed, 28 insertions(+), 16 deletions(-) (limited to 'layouts') diff --git a/layouts/baseof.html b/layouts/baseof.html index 9b5c08e..144c14d 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -1,6 +1,13 @@ - + + + + {{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }} - {{ site.Title }}{{ end }} + {{ with .Description }}{{ end }} + {{ $css := resources.Get "css/main.css" | fingerprint }} + +
{{ block "main" . }}{{ end }}
diff --git a/layouts/home.html b/layouts/home.html index e4e4a83..9de1998 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,2 +1,13 @@ {{ define "main" }} + {{ .Content }} + +

Notes

+ + {{ range (site.GetPage "/notes").Pages.ByTitle }} + + + + + {{ end }} +
{{ .File.ContentBaseName }}{{ .Title }}
{{ end }} diff --git a/layouts/page.html b/layouts/page.html index 540938f..25904c7 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,10 +1,4 @@ {{ define "main" }} -

{{ .Title }}

- - {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} - {{ $dateHuman := .Date | time.Format ":date_long" }} - - - {{ .Content }} +

{{ .Title }}

+ {{ .Content }} {{ end }} - diff --git a/layouts/section.html b/layouts/section.html index 0b95945..1e5eb84 100644 --- a/layouts/section.html +++ b/layouts/section.html @@ -3,9 +3,9 @@ {{ range .Pages }} - + + {{ end }}
{{ .LinkTitle }}{{ .File.ContentBaseName }}{{ .Title }}
{{ end }} - diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html index c2e7875..6aba219 100644 --- a/layouts/taxonomy.html +++ b/layouts/taxonomy.html @@ -1,7 +1,7 @@ {{ define "main" }} -

{{ .Title }}

- {{ .Content }} - {{ range .Pages }} -

{{ .LinkTitle }}

- {{ end }} +

{{ .Title }}

+ {{ .Content }} + {{ range .Pages }} +

{{ .LinkTitle }}

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