浏览代码

Fix asset paths when baseURL has sub-folder (#103)

See #97
tags/2.3
Anthony Fok 6 年前
父节点
当前提交
89c26174a4
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      layouts/_default/baseof.html
  2. 1
    1
      layouts/partials/site-scripts.html

+ 1
- 1
layouts/_default/baseof.html 查看文件

@@ -19,7 +19,7 @@

{{ $stylesheet := .Site.Data.webpack_assets.app }}
{{ with $stylesheet.css }}
<link href="{{ absURL (printf "%s%s" "/dist/" .) }}" rel="stylesheet">
<link href="{{ relURL (printf "%s%s" "dist/" .) }}" rel="stylesheet">
{{ end }}

{{ range .Site.Params.custom_css }}

+ 1
- 1
layouts/partials/site-scripts.html 查看文件

@@ -1,4 +1,4 @@
{{ $script := .Site.Data.webpack_assets.app }}
{{ with $script.js }}
<script src="{{ absURL (printf "%s%s" "/dist/" .) }}"></script>
<script src="{{ relURL (printf "%s%s" "dist/" .) }}"></script>
{{ end }}

正在加载...
取消
保存