mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
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.
18 lines
550 B
HTML
18 lines
550 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .shortLang }}" dir="{{ .pageDirection }}" class="{{ .cssClass }}">
|
|
<head>
|
|
<title>404 - jfa-go</title>
|
|
{{ template "header.txt" . }}
|
|
</head>
|
|
<body class="section">
|
|
<div class="page-container m-2 lg:my-20 lg:mx-64">
|
|
<div class="card">
|
|
<h1 class="heading">Page not found.</h1>
|
|
<p class="content">
|
|
{{ .contactMessage }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|