_includes/script.html in appscms-tools-theme-3.5.6 vs _includes/script.html in appscms-tools-theme-3.5.7
- old
+ new
@@ -450,10 +450,14 @@
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
crossorigin="anonymous"
></script>
{%- endif -%} {{site.data.customcdns.customcdns.jsfiles}} {%- if
scriptData.jsfilepaths -%} {%- for path in scriptData.jsfilepaths -%}
+
+{%- assign asset_dir = path -%}
+{%- if site.versioning and asset_dir != "" -%}
+{%- if asset_dir contains "https" and asset_dir contains "https://" -%}
<script
defer
src="{{path}}"
data-folderName="{{page.folderName}}"
data-lang="{{page.lang}}"
@@ -469,9 +473,54 @@
crossorigin
{%-
endif
-%}
></script>
+{%- else -%}
+<script
+ defer
+ src="{% ministamp { source_path: '{{ asset_dir }}', destination_path: '{{ asset_dir }}' } %}"
+ data-folderName="{{page.folderName}}"
+ data-lang="{{page.lang}}"
+ data-fileName="{{page.fileName}}"
+ data-tool="{{page.tool}}"
+ data-permalink="{{page.permalink}}"
+ {%-
+ if
+ site.crossorigin
+ -%}
+ {{
+ }}
+ crossorigin
+ {%-
+ endif
+ -%}
+></script>
+{%- endif -%}
+{%- else -%}
+<script
+ defer
+ src="{{path}}"
+ data-folderName="{{page.folderName}}"
+ data-lang="{{page.lang}}"
+ data-fileName="{{page.fileName}}"
+ data-tool="{{page.tool}}"
+ data-permalink="{{page.permalink}}"
+ {%-
+ if
+ site.crossorigin
+ -%}
+ {{
+ }}
+ crossorigin
+ {%-
+ endif
+ -%}
+></script>
+{%- endif -%}
+
+
+
{%- endfor -%} {%- endif -%} {%- if scriptData.jscdns -%} {%- for item in
scriptData.jscdns -%} {{item | replace:"$folderName", page.folderName | replace:
"$fileName", page.fileName | replace: "$lang", page.lang | replace: "$tool",
page.tool }} {%- endfor -%} {%- endif -%} {%- if page.layout == "frame" -%} {%-
assign font = "PT Sans" -%} {%- endif -%} {%- if page.layout ==