_includes/appscms/head/bloghead.html in appscms-tools-theme-4.3.9 vs _includes/appscms/head/bloghead.html in appscms-tools-theme-4.4.0
- old
+ new
@@ -66,11 +66,11 @@
= pagedescription | append : " " %} {%- endif -%} {%- endif -%} {% endfor %}
{%- assign title = newtitle -%} {%- assign description = pagedescription-%}
{%- endif -%}
<meta charset="UTF-8" />
- <link rel="shortcut icon" href="{{favicon}}" />
+ <link rel="shortcut icon" href="{{site.favicon}}" />
<link rel="canonical" href="{{site.url | append: page.url}}" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="keywords" content="{{site.keyboard}}" />
{%- if page.layout == "appscms-authors" or page.layout == "appscms-author" -%}
@@ -118,75 +118,12 @@
{%- endif -%}
{%- if page.layout == "blog-1" -%}
<link rel="stylesheet" href="{{'/assets/css/blog-1.css' | relative_url }}" {%- if site.crossorigin -%} crossorigin {%-
endif -%} />
- {%- endif -%} {%- include google-analytics.html -%} {% if jekyll.environment
- == 'production' and site.monumetricId %}
- <script>
- const autoLoadDuration = 5; //In Seconds
- const eventList = [
- "keydown",
- "mousemove",
- "wheel",
- "touchmove",
- "touchstart",
- "touchend",
- ];
+ {%- endif -%}
- const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000);
-
- eventList.forEach(function (event) {
- window.addEventListener(event, triggerScripts, { passive: true });
- });
-
- function triggerScripts() {
- runScripts();
- clearTimeout(autoLoadTimeout);
- eventList.forEach(function (event) {
- window.removeEventListener(event, triggerScripts, { passive: true });
- });
- }
-
- function runScripts() {
- document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
- scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
- });
- }
- </script>
- <script type="text/javascript" defer delay="{{site.monumetricId}}" data-cfasync="false"></script>
- {% endif %} {% if jekyll.environment == 'development' and site.monumetricId %}
- <script>
- const autoLoadDuration = 5; //In Seconds
- const eventList = [
- "keydown",
- "mousemove",
- "wheel",
- "touchmove",
- "touchstart",
- "touchend",
- ];
-
- const autoLoadTimeout = setTimeout(runScripts, autoLoadDuration * 1000);
-
- eventList.forEach(function (event) {
- window.addEventListener(event, triggerScripts, { passive: true });
- });
-
- function triggerScripts() {
- runScripts();
- clearTimeout(autoLoadTimeout);
- eventList.forEach(function (event) {
- window.removeEventListener(event, triggerScripts, { passive: true });
- });
- }
-
- function runScripts() {
- document.querySelectorAll("script[delay]").forEach(function (scriptTag) {
- scriptTag.setAttribute("src", scriptTag.getAttribute("delay"));
- });
- }
- </script>
- <script type="text/javascript" delay="{{site.monumetricId}}"></script>
-
- {% endif %}
+ <link rel="manifest" href="/assets/js/manifest.json" />
+
+ {%- include google-analytics.html -%}
+
</head>
\ No newline at end of file