瀏覽代碼

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 年之前
父節點
當前提交
cfbd40cd86
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      layouts/_default/baseof.html

+ 1
- 1
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" . }}

Loading…
取消
儲存