mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

nickjwhite
03.16.2020 cfbd40cd86bf43a4a6152a4c3d25d85dc2326880
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>
1 files modified
2 ■■■ changed files
layouts/_default/baseof.html 2 ●●● patch | view | raw | blame | history
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" . }}