Umstellung auf dynamische Templates

This commit is contained in:
2025-05-10 19:01:12 +02:00
parent c1b6a0cbb3
commit 7630d1e033
5 changed files with 98 additions and 4 deletions

12
templates/page.html Normal file
View File

@@ -0,0 +1,12 @@
{{ define "title" }}{{ .Title }}  B1tsblog{{ end }}
{{ define "body" }}
<article>
<p><a class="no-underline" href="/">Zurück</a></p>
<h1>{{ .Title }}</h1>
<div class="article-content">{{ .Body }}</div>
<p><a class="no-underline" href="/">Zurück</a></p>
</article>
{{ end }}
{{ define "page" }}{{ template "layout" . }}{{ end }}