diff options
author | nickjwhite <github@njw.name> | 2020-06-03 17:16:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 17:16:59 +0300 |
commit | cfbd40cd86bf43a4a6152a4c3d25d85dc2326880 (patch) | |
tree | 0a4e2de2a62b500c230dca1b572bd2a7c748a194 | |
parent | 0cb10e19cc1616bad0938c0323660212e027d712 (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-x | layouts/_default/baseof.html | 2 |
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" . }} |