Skip to content

Commit 5fe757e

Browse files
authored
replace "with" to use "if" block
1 parent 079935b commit 5fe757e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/partials/head-last.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
22
<script src="{{{uiRootPath}}}/js/vendor/jquery.js"></script>
3-
{{#with env.OPTANON_SCRIPT_URL}}
4-
<script src="{{this}}" data-domain-script="{{env.OPTANON_SCRIPT_DATA_DOMAIN_SCRIPT}}"></script>
3+
{{#if env.OPTANON_SCRIPT_URL}}
4+
<script src="{{env.OPTANON_SCRIPT_URL}}" data-domain-script="{{env.OPTANON_SCRIPT_DATA_DOMAIN_SCRIPT}}"></script>
55
<script>function OptanonWrapper(){}</script>
6-
{{/with}}
6+
{{/if}}
77
{{#with site.keys.googleAnalytics}}
88
<script>(window.dataLayer=window.dataLayer||[]).push({'gtm.start':+new Date(),event:'gtm.js'})</script>
99
<script async src="https://www.googletagmanager.com/gtm.js?id={{{this}}}"></script>

0 commit comments

Comments
 (0)