flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 199a3528f54dee57d526a9aead035f1ef030df12
parent 619b97c145842b3ef7463cb40e8e7a42712a4bec
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 24 Jan 2021 22:02:00 -0800

Fix URL hardcoded issue with css

cleanup margin on blockquotes on mobile

Diffstat:
Mhttp.go | 3++-
Mtemplates/static/style.css | 5+++++
Mtemplates/user_page.html | 2+-
3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/http.go b/http.go @@ -619,7 +619,8 @@ func userFile(w http.ResponseWriter, r *http.Request) { Favicon string PageTitle string URI *url.URL - }{template.HTML(htmlString), favicon, userName + p, &uri} + Config Config + }{template.HTML(htmlString), favicon, userName + p, &uri, c} err = t.ExecuteTemplate(w, "user_page.html", data) if err != nil { panic(err) diff --git a/templates/static/style.css b/templates/static/style.css @@ -153,4 +153,9 @@ blockquote { input[type="text"], input[type="password"], textarea { font-size: 1rem; } + + blockquote { + margin-left: 0; + margin-right: 0; + } } diff --git a/templates/user_page.html b/templates/user_page.html @@ -4,7 +4,7 @@ <meta charset="utf-8" /> <title>{{.PageTitle }}</title> <meta name="viewport" content="width=device-width" /> - <link rel="stylesheet" type="text/css" href="https://flounder.online/style.css" /> + <link rel="stylesheet" type="text/css" href="//{{.Config.Host}}/style.css" /> <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{.Favicon}}</text></svg>"> </head> <body>