Make asset paths absolute

Fixes #97
This commit is contained in:
budparr 2018-04-14 14:12:22 -04:00
parent 8b43f4662e
commit 6e5e6df161
No known key found for this signature in database
GPG key ID: 05AB7813F9C39728
2 changed files with 2 additions and 2 deletions

View file

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

View file

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