Skip to content

Commit f3122f9

Browse files
nickjwhiteRemicck
authored andcommitted
Fix relURL for custom_css (gohugo-ananke#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>
1 parent 90a773a commit f3122f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{{ end }}
2121

2222
{{ range .Site.Params.custom_css }}
23-
<link rel="stylesheet" href="{{ relURL ($.Site.BaseURL) }}{{ . }}">
23+
<link rel="stylesheet" href="{{ relURL (.) }}">
2424
{{ end }}
2525

2626
{{ block "favicon" . }}

0 commit comments

Comments
 (0)