From 89c26174a48f786f728c57d78fa53ffc100389c0 Mon Sep 17 00:00:00 2001
From: Anthony Fok <foka@debian.org>
Date: Thu, 17 May 2018 20:54:40 +0000
Subject: [PATCH] Fix asset paths when baseURL has sub-folder (#103)
---
layouts/partials/site-scripts.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/site-scripts.html b/layouts/partials/site-scripts.html
index 17946bf..bd6c7f5 100644
--- a/layouts/partials/site-scripts.html
+++ b/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 }}
--
Gitblit v1.10.0