all repos — flounder @ 199a3528f54dee57d526a9aead035f1ef030df12

A small site builder for the Gemini protocol

Fix URL hardcoded issue with css

cleanup margin on blockquotes on mobile
alex wennerberg alex@alexwennerberg.com
Sun, 24 Jan 2021 22:02:00 -0800
commit

199a3528f54dee57d526a9aead035f1ef030df12

parent

619b97c145842b3ef7463cb40e8e7a42712a4bec

3 files changed, 8 insertions(+), 2 deletions(-)

jump to
M http.gohttp.go

@@ -619,7 +619,8 @@ SiteBody template.HTML

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)
M templates/static/style.csstemplates/static/style.css

@@ -153,4 +153,9 @@ }

input[type="text"], input[type="password"], textarea { font-size: 1rem; } + + blockquote { + margin-left: 0; + margin-right: 0; + } }
M templates/user_page.htmltemplates/user_page.html

@@ -4,7 +4,7 @@ <head>

<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>