From f70ef2d356026828978fc649f3c61e7306c9d824 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 22 Nov 2025 15:26:43 +0100 Subject: [PATCH] WIP: taxonomy-Template (und: custom_css) --- .../thymeleaf/layouts/_partials/head.html | 1 + hugo/themes/thymeleaf/layouts/taxonomy.html | 56 ++++++++++++++++--- 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/hugo/themes/thymeleaf/layouts/_partials/head.html b/hugo/themes/thymeleaf/layouts/_partials/head.html index 02c22401..008382fb 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/head.html +++ b/hugo/themes/thymeleaf/layouts/_partials/head.html @@ -3,3 +3,4 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} +{{ block "custom_css" . }}{{ end }} diff --git a/hugo/themes/thymeleaf/layouts/taxonomy.html b/hugo/themes/thymeleaf/layouts/taxonomy.html index c2e78751..35df26d5 100644 --- a/hugo/themes/thymeleaf/layouts/taxonomy.html +++ b/hugo/themes/thymeleaf/layouts/taxonomy.html @@ -1,7 +1,49 @@ -{{ define "main" }} -

{{ .Title }}

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

{{ .LinkTitle }}

- {{ end }} -{{ end }} +{{- define "custom_css" }} + +{{- end }} +{{- define "main" }} + +{{- if .Title }} + +{{- end }} + + + +{{- end }}{{/* end main */ -}} -- 2.39.5