Sfoglia il codice sorgente

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>
tags/2.6.0
nickjwhite 4 anni fa
parent
commit
cfbd40cd86
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      layouts/_default/baseof.html

+ 1
- 1
layouts/_default/baseof.html Vedi File

@@ -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" . }}

Loading…
Annulla
Salva