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

See #97
This commit is contained in:
Anthony Fok 2018-05-17 14:54:40 -06:00 committed by Bud Parr
parent 10b6b6be0f
commit 89c26174a4
2 changed files with 2 additions and 2 deletions

View file

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

View file

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