Przeglądaj źródła

Make asset paths absolute

Fixes #97
tags/2.2
budparr 6 lat temu
rodzic
commit
6e5e6df161
No account linked to committer's email address

+ 1
- 1
layouts/_default/baseof.html Wyświetl plik

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

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



+ 1
- 1
layouts/partials/site-scripts.html Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz