_includes/script.html in appscms-tools-theme-2.3.0 vs _includes/script.html in appscms-tools-theme-2.3.1

- old
+ new

@@ -24,16 +24,24 @@ {{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" crossorigin="anonymous"></script> + {%- assign font = "Source Sans Pro" -%} + {%- if page.layout == "frame" -%} {%- assign font = "PT Sans" -%} {%- endif -%} + {%- if page.layout == "photo-effects-home" -%} {%- assign font = "PT Sans" -%} {%- endif -%} + +{%- if page.layout == 'home-1' or page.layout == "feature-1" -%} +{%- assign font = "Inter" -%} +{%- endif -%} + <script>WebFont.load({ google: { families: ['{{font}}: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