From bc1bce58ce1b531ee6dc6652411569cfe1f0e338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 28 Jan 2024 16:13:02 +0200 Subject: [PATCH] fix title sections --- blog/themes/default/layouts/_default/baseof.html | 2 +- blog/themes/default/layouts/_default/section.html | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/blog/themes/default/layouts/_default/baseof.html b/blog/themes/default/layouts/_default/baseof.html index 6f53c04..7a4c2a3 100644 --- a/blog/themes/default/layouts/_default/baseof.html +++ b/blog/themes/default/layouts/_default/baseof.html @@ -3,7 +3,7 @@ {{ partial "html-meta.html" . -}} - {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} + {{ if not (or .IsHome .IsSection) }}{{ .Title }} - {{ end }}{{ .Site.Title }} {{ $css := resources.Get "style.scss" | resources.ToCSS (dict "transpiler" "dartsass" "enableSourceMap" false) | resources.Fingerprint }} {{ with .Site.Params.favicon -}} diff --git a/blog/themes/default/layouts/_default/section.html b/blog/themes/default/layouts/_default/section.html index 70d261c..f2ec6cf 100644 --- a/blog/themes/default/layouts/_default/section.html +++ b/blog/themes/default/layouts/_default/section.html @@ -1,7 +1,4 @@ {{ define "main" -}} -
-

{{ .Title }}

-
{{ .Content -}}
@@ -13,5 +10,4 @@ {{ end -}} - {{ end }}