From 1f9cc1d578de130ca9433e00422bded017a75f29 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 10 Apr 2026 12:27:42 +0200 Subject: feat: conditionally show progress-bar only on single articles and pages Hide progress-bar from: - Homepage (.IsHome) - Taxonomy/term pages (.Kind == "term" or "taxonomy") - Section/list pages (.Kind == "section") Show progress-bar only on: - Single articles - Single pages This removes visual clutter from list pages while keeping the reading progress indicator for long-form content. Co-Authored-By: Claude Haiku 4.5 --- layouts/baseof.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/baseof.html b/layouts/baseof.html index 2e4d6c7..cdbb1e3 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -13,7 +13,9 @@ -
+ {{ if and (not .IsHome) (ne .Kind "term") (ne .Kind "taxonomy") (ne .Kind "section") }} +
+ {{ end }} {{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
-- cgit v1.2.3