css: add global css
crispy-caesus crispy@crispy-caesus.eu
Tue, 24 Mar 2026 20:24:15 +0100
7 files changed,
35 insertions(+),
19 deletions(-)
A
static/global.css
@@ -0,0 +1,13 @@
+body { + font-family: "Liberation Sans", Helvetica, Arial, sans-serif; + line-height: 1.6; + + background-color: #1e2021; + color: #c8c3bc; + + justify-content: center; + align-items: flex-start; + + min-height: 100vh; + padding: 2em; +}
M
static/index.css
→
static/index.css
@@ -6,17 +6,14 @@ }
/* Body styling */ body { - background-color: #1e2021; - font-family: Arial, sans-serif; - color: #c8c3bc; line-height: 1.6; min-height: 100vh; width: 100%; font-size: 1em; display: flex; flex-direction: column; - justify-content: center; align-items: center; + padding: 0em; } /* Center the main container */
M
static/music.css
→
static/music.css
@@ -1,17 +1,3 @@
-body { - font-family: Arial, sans-serif; - color: #c8c3bc; - line-height: 1.6; - - background-color: #1e2021; - - justify-content: center; - align-items: flex-start; - - min-height: 100vh; - padding: 2em; -} - ul { display: flex; flex-direction: column;
M
templates/blogpost.gotmpl
→
templates/blogpost.gotmpl
@@ -1,6 +1,15 @@
+<!doctype html> +<html lang="en"> + <head> + <title>{{.Title}}</title> + <link rel="stylesheet" href="../static/global.css" /> + <link rel="icon" type="image/png" href="../static/banan_icon.png" /> +</head> +<body> <h1>{{.Title}}</h1> {{.Date}} <br> <p> {{.Text}} </p> +</body>
M
templates/blogposts.gotmpl
→
templates/blogposts.gotmpl
@@ -1,7 +1,16 @@
-<link rel="stylesheet" href="../static/blogPage.css" /> +<!doctype html> +<html lang="en"> + <head> + <title>crispy blog</title> + <link rel="stylesheet" href="../static/global.css" /> + <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> +</body>
M
templates/index.html
→
templates/index.html
@@ -4,6 +4,7 @@ <head>
<meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>banana square</title> + <link rel="stylesheet" href="../static/global.css" /> <link rel="stylesheet" href="../static/index.css" /> <link rel="icon" type="image/png" href="../static/banan_icon.png" /> </head>
M
templates/music.html
→
templates/music.html
@@ -4,6 +4,7 @@ <head>
<meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>toothbrushing music</title> + <link rel="stylesheet" href="static/global.css" /> <link rel="stylesheet" href="static/music.css" /> </head>