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
3 files changed,
8 insertions(+),
2 deletions(-)
M
http.go
→
http.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.css
→
templates/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.html
→
templates/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>