mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-18 20:13:31 +08:00
fix incorrect js path generation
This commit is contained in:
parent
ccc12b974b
commit
3ca2e09da4
@ -5,4 +5,4 @@ plugins:
|
||||
title: Google Analytics
|
||||
description: This code gives us insight into the number of people that visit our website, where they are from and what they are clicking on. We follow the guidelines of the Italian Government.
|
||||
html_src: gdpr/gtag.html
|
||||
js_src: js/gtag.js
|
||||
js_src: gtag.js
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{ "<!-- " }} {{ $plugin.name }} {{ "start -->" }}
|
||||
{{ partial $plugin.html_src }}
|
||||
{{ if $plugin.functional }}
|
||||
<script type="text/javascript" src="{{ $plugin.js_src }}"></script>
|
||||
<script type="text/javascript" src="/js/{{ $plugin.js_src }}"></script>
|
||||
{{ end }}
|
||||
{{ "<!-- " }} {{ $plugin.name }} {{ "end -->" }}
|
||||
{{ end }}
|
||||
@ -68,7 +68,7 @@
|
||||
const scripts = [];
|
||||
{{ range $index, $plugin := .Site.Data.gdpr.plugins }}
|
||||
{{ if and $plugin.enabled (not $plugin.functional) }}
|
||||
scripts[{{ $index }}] = "{{ $plugin.js_src }}";
|
||||
scripts[{{ $index }}] = "/js/{{ $plugin.js_src }}";
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user