Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/budparr/gohugo-theme-ananke.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickjwhite <github@njw.name>2020-06-03 17:16:59 +0300
committerGitHub <noreply@github.com>2020-06-03 17:16:59 +0300
commitcfbd40cd86bf43a4a6152a4c3d25d85dc2326880 (patch)
tree0a4e2de2a62b500c230dca1b572bd2a7c748a194
parent0cb10e19cc1616bad0938c0323660212e027d712 (diff)
Fix relURL for custom_css (#252)
The way relURL was used meant that one needed to preface the custom_css entries with a slash, or the href would be incorrectly set to subdircss/mycss.css rather than subdir/css/mycss.css, in the case of a baseURL in a subdir. Co-authored-by: Nick White <git@njw.name>
-rwxr-xr-xlayouts/_default/baseof.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 67f1415..09622d4 100755
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -20,7 +20,7 @@
{{ end }}
{{ range .Site.Params.custom_css }}
- <link rel="stylesheet" href="{{ relURL ($.Site.BaseURL) }}{{ . }}">
+ <link rel="stylesheet" href="{{ relURL (.) }}">
{{ end }}
{{ block "favicon" . }}