html: fix headers

go's html/template was thinking header.html and other template snippets
were full documents, so inserting their own <html> and other tags,
breaking the head up. Renaming to txt seems to fix things.
This commit is contained in:
Harvey Tindall
2025-12-10 20:20:16 +00:00
parent 1c755306f9
commit 85a6d66228
11 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="{{ .cssClass }}">
<head>
<title>404 - jfa-go</title>
{{ template "header.html" . }}
{{ template "header.txt" . }}
</head>
<body class="section">
<div class="page-container m-2 lg:my-20 lg:mx-64">