_includes/custom-head.html in appscms-tools-theme-2.7.3 vs _includes/custom-head.html in appscms-tools-theme-2.7.4
- old
+ new
@@ -1,137 +1,137 @@
-<head>
- {%- assign pagedescriptionlength = page.description | split: ' ' -%}
- {%- if pagedescriptionlength.size > 5 -%}
- {%- assign pagedescriptionlength = page.description | split: ' ' -%}
- {%- assign pagedescription = page.description -%}
- {%- endif -%}
- {% assign favicon = site.favicon %} {%- assign seo_description =
- pagedescription | default: page.content | markdownify | strip_html |
- truncatewords: 50 | default: page.excerpt | default: site.description -%} {%-
- if seo_description -%} {%- assign seo_description = seo_description |
- markdownify | strip_html | strip_newlines | escape_once -%} {%- endif -%} {%-
- if page.date -%} {%- assign og_type = "article" -%} {%- else -%} {%- assign
- og_type = "website" -%} {%- endif -%}
- {%- assign title = page.title | split: ' ' -%}
- {%- assign newtitle = '' %}
- {% for operation in title %}
- {%- if forloop.first -%}
- {% assign word = operation | capitalize %}
- {% assign newtitle = newtitle | append : word %}
- {% assign newtitle = newtitle | append : " " %}
- {%- else -%}
- {% assign word = operation %}
- {%- if forloop.last -%}
- {% assign newtitle = newtitle | append : word %}
- {%- else -%}
- {% assign newtitle = newtitle | append : word %}
- {% assign newtitle = newtitle | append : " " %}
- {%- endif -%}
- {%- endif -%}
- {% endfor %}
- {%- assign description = description | split: ' ' -%}
- {% assign pagedescription = '' %}
- {% for operation in description %}
- {%- if forloop.first -%}
- {% assign word = operation | capitalize %}
- {% assign pagedescription = pagedescription | append : word %}
- {% assign pagedescription = pagedescription | append : " " %}
- {%- else -%}
- {% assign word = operation %}
- {%- if forloop.last -%}
- {% assign pagedescription = pagedescription | append : word %}
- {%- else -%}
- {% assign pagedescription = pagedescription | append : word %}
- {% assign pagedescription = pagedescription | append : " " %}
- {%- endif -%}
- {%- endif -%}
- {% endfor %}
- {%- assign title = newtitle -%}
- {%- assign description = pagedescription-%}
- <meta charset="UTF-8" />
- <link rel="shortcut icon" href="{{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}}" />
- <meta name="description" content="{{ seo_description | slice: 0, 155 }}" />
- <meta name="og:description" content="{{ seo_description | slice: 0, 155 }}" />
- <meta property="og:title" content="{{ title | default: site.title }}" />
- <meta property="og:type" content="{{og_type}}" />
- <meta property="og:locale" content="en_US" />
- <meta property="og:site_name" content="{{site.name}}" />
- <meta property="og:url" content="{{site.url | append: page.url}}" />
- <meta name="author" content="{{ site.author_name }}" />
- <title>{{title}}</title>
- <link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet" />
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.0/css/all.min.css" {%- if
- site.crossorigin -%} crossorigin {%- endif -%} />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" {%- if
- site.crossorigin -%} crossorigin {%- endif -%} />
- {% include adsense/adsense.html %}
- <link rel="stylesheet" href="{{'/assets/css/blog.css' | relative_url }}" {%- if site.crossorigin -%} crossorigin {%-
- 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"];
-
- 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 %}
-</head>
+<head>
+ {%- assign pagedescriptionlength = page.description | split: ' ' -%}
+ {%- if pagedescriptionlength.size > 5 -%}
+ {%- assign pagedescriptionlength = page.description | split: ' ' -%}
+ {%- assign pagedescription = page.description -%}
+ {%- endif -%}
+ {% assign favicon = site.favicon %} {%- assign seo_description =
+ pagedescription | default: page.content | markdownify | strip_html |
+ truncatewords: 50 | default: page.excerpt | default: site.description -%} {%-
+ if seo_description -%} {%- assign seo_description = seo_description |
+ markdownify | strip_html | strip_newlines | escape_once -%} {%- endif -%} {%-
+ if page.date -%} {%- assign og_type = "article" -%} {%- else -%} {%- assign
+ og_type = "website" -%} {%- endif -%}
+ {%- assign title = page.title | split: ' ' -%}
+ {%- assign newtitle = '' %}
+ {% for operation in title %}
+ {%- if forloop.first -%}
+ {% assign word = operation | capitalize %}
+ {% assign newtitle = newtitle | append : word %}
+ {% assign newtitle = newtitle | append : " " %}
+ {%- else -%}
+ {% assign word = operation %}
+ {%- if forloop.last -%}
+ {% assign newtitle = newtitle | append : word %}
+ {%- else -%}
+ {% assign newtitle = newtitle | append : word %}
+ {% assign newtitle = newtitle | append : " " %}
+ {%- endif -%}
+ {%- endif -%}
+ {% endfor %}
+ {%- assign description = description | split: ' ' -%}
+ {% assign pagedescription = '' %}
+ {% for operation in description %}
+ {%- if forloop.first -%}
+ {% assign word = operation | capitalize %}
+ {% assign pagedescription = pagedescription | append : word %}
+ {% assign pagedescription = pagedescription | append : " " %}
+ {%- else -%}
+ {% assign word = operation %}
+ {%- if forloop.last -%}
+ {% assign pagedescription = pagedescription | append : word %}
+ {%- else -%}
+ {% assign pagedescription = pagedescription | append : word %}
+ {% assign pagedescription = pagedescription | append : " " %}
+ {%- endif -%}
+ {%- endif -%}
+ {% endfor %}
+ {%- assign title = newtitle -%}
+ {%- assign description = pagedescription-%}
+ <meta charset="UTF-8" />
+ <link rel="shortcut icon" href="{{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}}" />
+ <meta name="description" content="{{ seo_description | slice: 0, 155 }}" />
+ <meta name="og:description" content="{{ seo_description | slice: 0, 155 }}" />
+ <meta property="og:title" content="{{ title | default: site.title }}" />
+ <meta property="og:type" content="{{og_type}}" />
+ <meta property="og:locale" content="en_US" />
+ <meta property="og:site_name" content="{{site.name}}" />
+ <meta property="og:url" content="{{site.url | append: page.url}}" />
+ <meta name="author" content="{{ site.author_name }}" />
+ <title>{{title}}</title>
+ <link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet" />
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.0/css/all.min.css" {%- if
+ site.crossorigin -%} crossorigin {%- endif -%} />
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" {%- if
+ site.crossorigin -%} crossorigin {%- endif -%} />
+ {% include adsense/adsense.html %}
+ <link rel="stylesheet" href="{{'/assets/css/blog.css' | relative_url }}" {%- if site.crossorigin -%} crossorigin {%-
+ 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"];
+
+ 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 %}
+</head>
{{ seo_description }}
\ No newline at end of file