diff --git a/build/css-renamer.go b/build/css-renamer.go index 0cf6331..ca31c2c 100644 --- a/build/css-renamer.go +++ b/build/css-renamer.go @@ -37,7 +37,7 @@ func getCssFilesPaths() []string { panic(err) } for _, file := range files { - paths = append(paths, "static/styles/"+file.Name()) + paths = append(paths, "/static/styles/"+file.Name()) } return paths } @@ -47,7 +47,7 @@ func createCssMap() map[string]string { var cssMap = make(map[string]string) origPaths := getCssFilesPaths() for _, origPath := range origPaths { - newPath := "static/styles/" + randomString(10) + ".css" + newPath := "/static/styles/" + randomString(10) + ".css" cssMap[origPath] = newPath } diff --git a/templates/components/footer.html b/templates/components/footer.html index 0452790..7234109 100644 --- a/templates/components/footer.html +++ b/templates/components/footer.html @@ -2,7 +2,7 @@ diff --git a/templates/head/static.html b/templates/head/static.html index e49152f..a8b980d 100644 --- a/templates/head/static.html +++ b/templates/head/static.html @@ -10,7 +10,7 @@ integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"> - - - + + + {{ end }} diff --git a/templates/pages/400.html b/templates/pages/400.html index 4376734..0057cda 100644 --- a/templates/pages/400.html +++ b/templates/pages/400.html @@ -2,7 +2,7 @@
{{ template "static" }} - + {{ template "meta-tags-static" }} @@ -13,7 +13,7 @@ diff --git a/templates/pages/404.html b/templates/pages/404.html index 25cfd57..614a3d4 100644 --- a/templates/pages/404.html +++ b/templates/pages/404.html @@ -2,7 +2,7 @@ {{ template "static" }} - + {{ template "meta-tags-static" }} @@ -13,7 +13,7 @@ diff --git a/templates/pages/500.html b/templates/pages/500.html index 15f4fd1..3215fa5 100644 --- a/templates/pages/500.html +++ b/templates/pages/500.html @@ -2,7 +2,7 @@ {{ template "static" }} - + {{ template "meta-tags-static" }} @@ -13,7 +13,7 @@ diff --git a/templates/pages/index.html b/templates/pages/index.html index edddc7b..32a1204 100644 --- a/templates/pages/index.html +++ b/templates/pages/index.html @@ -3,7 +3,7 @@ {{ template "static" }} - + {{ template "meta-tags-static" }} diff --git a/templates/pages/thread.html b/templates/pages/thread.html index aa6da5a..4671a2f 100644 --- a/templates/pages/thread.html +++ b/templates/pages/thread.html @@ -6,8 +6,8 @@ {{ template "static" }} {{ template "meta-tags-dynamic" $FirstPost }} - - + +