Skip to content

Commit

Permalink
Make asset paths absolute
Browse files Browse the repository at this point in the history
Fixes #97
  • Loading branch information
budparr committed Apr 14, 2018
1 parent 8b43f46 commit 6e5e6df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}


Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/site-scripts.html
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 6e5e6df

Please sign in to comment.