Skip to content

Commit

Permalink
Fix relURL for custom_css (#252)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nickjwhite and nickjwhite authored Jun 3, 2020
1 parent 0cb10e1 commit cfbd40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down

0 comments on commit cfbd40c

Please sign in to comment.