mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Anthony Fok
17.54.2018 89c26174a48f786f728c57d78fa53ffc100389c0
Fix asset paths when baseURL has sub-folder (#103)

See #97
2 files modified
4 ■■■■ changed files
layouts/_default/baseof.html 2 ●●● patch | view | raw | blame | history
layouts/partials/site-scripts.html 2 ●●● patch | view | raw | blame | history
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 }}
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 }}