use url for stylesheet
alex wennerberg alex@alexwennerberg.com
Wed, 06 Jan 2021 21:55:25 -0800
2 files changed,
1 insertions(+),
5 deletions(-)
M
http.go
→
http.go
@@ -552,10 +552,6 @@ if strings.HasPrefix(p, "/"+HiddenFolder) {
renderDefaultError(w, http.StatusForbidden) return } - if r.URL.Path == "/style.css" { - http.ServeFile(w, r, path.Join(c.TemplatesDirectory, "static/style.css")) - return - } if r.URL.Path == "/gemlog/atom.xml" && os.IsNotExist(err) { w.Header().Set("Content-Type", "application/atom+xml") // TODO set always somehow
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="/style.css" /> + <link rel="stylesheet" type="text/css" href="https://flounder.online/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>