From 830d2599b1b8a4a1ea6dd6a12d1454c884e4ca20 Mon Sep 17 00:00:00 2001 From: pnee-lb <30652906+pnee-lb@users.noreply.github.com> Date: Mon, 12 Aug 2019 15:00:32 +0100 Subject: [PATCH] fix for github.com/netlify-templates/one-click-hugo-cms/issues/187 --- site/layouts/partials/footer.html | 6 +++++- webpack.common.js | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/site/layouts/partials/footer.html b/site/layouts/partials/footer.html index c7866a3bc..e32a588ae 100644 --- a/site/layouts/partials/footer.html +++ b/site/layouts/partials/footer.html @@ -50,4 +50,8 @@

Social media

{{ partial "svg" . }} - + +{{ $app := .Site.Data.webpack.app }} +{{ with $app.js }} + +{{ end }} diff --git a/webpack.common.js b/webpack.common.js index 6eb21efb9..2ce1d981c 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -9,6 +9,7 @@ module.exports = { entry: { main: path.join(__dirname, "src", "index.js"), cms: path.join(__dirname, "src", "js", "cms.js"), + app: path.join(__dirname, "src", "js", "app.js"), }, output: {