From 21d48200f5562229434955a8a577c586e7e1047e Mon Sep 17 00:00:00 2001 From: Vladimir Zagainov Date: Thu, 4 Jun 2026 16:57:34 +0300 Subject: [PATCH] fix: parse templates individually to prevent content block overwrite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: ParseFS with wildcard html/*.html caused all {{define "content"}} blocks to overwrite each other — last alphabetically (register.html) won for all pages. Now each page is parsed separately with base.html as its own template. Also fix footer link: GitHub → Gitea project page. --- internal/templates/html/base.html | 2 +- internal/templates/templates.go | 40 ++++++++++++++++++------------- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/internal/templates/html/base.html b/internal/templates/html/base.html index b226761..62cb67e 100644 --- a/internal/templates/html/base.html +++ b/internal/templates/html/base.html @@ -348,7 +348,7 @@
{{template "content" .}}