Skip to content

Commit 275496a

Browse files
committed
define uiRootPath var in head instead of footer
1 parent c370ec5 commit 275496a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/partials/footer-scripts.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<script>window.uiRootPath = '{{{uiRootPath}}}'</script>
21
<script src="{{{uiRootPath}}}/js/site.js"></script>
32
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
43
{{#with (resolvePage page.relativeSrcPath model=false)}}

src/partials/head-scripts.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
<script async src="https://www.googletagmanager.com/gtag/js?id={{this}}"></script>
33
<script>function gtag(){dataLayer.push(arguments)};window.dataLayer=window.dataLayer||[];gtag('js',new Date());gtag('config','{{this}}')</script>
44
{{/with}}
5+
<script>var uiRootPath = '{{{uiRootPath}}}'</script>

0 commit comments

Comments
 (0)