css: center blog pages
crispy-caesus crispy@crispy-caesus.eu
Wed, 25 Mar 2026 00:13:56 +0100
4 files changed,
24 insertions(+),
12 deletions(-)
M
static/blog.css
→
static/blog.css
@@ -1,3 +1,8 @@
+body{ + display: flex; + justify-content: center; +} + p{ max-width: 80ch; text-wrap: wrap;
M
static/blogPage.css
→
static/blogPage.css
@@ -1,3 +1,8 @@
+body{ + display: flex; + justify-content: center; +} + ul { list-style-type: none; }
M
templates/blogpost.gotmpl
→
templates/blogpost.gotmpl
@@ -8,10 +8,12 @@ <link rel="stylesheet" href="../static/blog.css" />
<link rel="icon" type="image/png" href="../static/banan_icon.png" /> </head> <body> -<h1>{{.Title}}</h1> -{{.Date}} -<br> -<p> - {{.Text}} -</p> + <div> + <h1>{{.Title}}</h1> + {{.Date}} + <br> + <p> + {{.Text}} + </p> + </div> </body>
M
templates/blogposts.gotmpl
→
templates/blogposts.gotmpl
@@ -8,10 +8,10 @@ <link rel="stylesheet" href="../static/blogPage.css" />
<link rel="icon" type="image/png" href="../static/banan_icon.png" /> </head> <body> -<h1>Crispy Blog</h1> -<ul class=bloglist> - {{range .}} - <li>{{.Date}} <a href="{{.URL}}">{{.Title}}</a></li> - {{end}} -</ul> + <div> + <h1>Crispy Blog</h1> + {{range .}} + <p>{{.Date}} <a href="{{.URL}}">{{.Title}}</a></p> + {{end}} + </div> </body>