_includes/script.html in appscms-tools-theme-1.9.9 vs _includes/script.html in appscms-tools-theme-2.0.1

- old
+ new

@@ -1,28 +1,27 @@ -{%- include adblocker.html -%} -{% assign scriptData = site.data.[page.folderName][lang][file] %} -{%- assign dataAtt = "data-folderName='$folderName' data-lang='$lang' data-fileName='$fileName' data-tool='$tool'" -%} -{%- assign $folderName = '$folderName' -%} -<script defer="defer" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" {%- if site.crossorigin - -%} crossorigin {%- endif -%}></script> -<script defer="defer" src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" - integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous" {%- if - site.crossorigin -%} crossorigin {%- endif -%}></script> -{{site.data.customcdns.customcdns.jsfiles}} -{%- if scriptData.jsfilepaths -%} -{%- for path in scriptData.jsfilepaths -%} -<script defer="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> -{%- 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 -%} -<script src="//cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js"></script> -<script>WebFont.load({ google: { families: ['Source Sans Pro:200,300,400,500,600,700,800&display=swap'] } })</script> -<link defer="defer" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" - integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" - crossorigin="anonymous" referrerpolicy="no-referrer" {%- if site.crossorigin -%} crossorigin {%- endif -%} /> +{%- include adblocker.html -%} +{% assign scriptData = site.data.[page.folderName][lang][file] %} +{%- assign dataAtt = "data-folderName='$folderName' data-lang='$lang' data-fileName='$fileName' data-tool='$tool'" -%} +{%- assign $folderName = '$folderName' -%} +<script defer="defer" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" {%- if site.crossorigin + -%} {{ }} crossorigin {%- endif -%}></script> +<script defer="defer" src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" + integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script> +{{site.data.customcdns.customcdns.jsfiles}} +{%- if scriptData.jsfilepaths -%} +{%- for path in scriptData.jsfilepaths -%} +<script defer="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> +{%- 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 -%} +<script src="//cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js"></script> +<script>WebFont.load({ google: { families: ['Source Sans Pro:200,300,400,500,600,700,800&display=swap'] } })</script> +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" + integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" + crossorigin="anonymous" referrerpolicy="no-referrer" /> \ No newline at end of file