templates: create blog
crispy-caesus crispy@crispy-caesus.eu
Fri, 20 Mar 2026 02:13:25 +0100
2 files changed,
13 insertions(+),
0 deletions(-)
A
templates/blogpost.gotmpl
@@ -0,0 +1,6 @@
+<h1>{{.Title}}</h1> +{{.Date}} +<br> +<p> + {{.Text}} +</p>
A
templates/blogposts.gotmpl
@@ -0,0 +1,7 @@
+<link rel="stylesheet" href="../static/blogPage.css" /> +<h1>Crispy Blog</h1> +<ul class=bloglist> + {{range .}} + <li>{{.Date}} <a href="{{.URL}}">{{.Title}}</a></li> + {{end}} +</ul>