aboutsummaryrefslogtreecommitdiff
path: root/_includes/head.html
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-04-24 19:25:51 +0300
committerValentin Popov <info@valentineus.link>2018-04-24 19:32:42 +0300
commit95047707298544a969b2e6eb3e84144b201f2824 (patch)
treec1ba0ccab09321da42bc7ccc686d4934c2edb518 /_includes/head.html
parentbbf5de4c464b9d107f15c8c7233c74e36fc1e6d3 (diff)
downloadpopov.link-95047707298544a969b2e6eb3e84144b201f2824.tar.xz
popov.link-95047707298544a969b2e6eb3e84144b201f2824.zip
Collection with additional meta tags
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes/head.html')
-rw-r--r--_includes/head.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/_includes/head.html b/_includes/head.html
index 20217ea..012e8c7 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -3,17 +3,18 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <link rel="canonical" href="{{ page.url | absolute_url | uri_escape }}" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
- <!-- Search engines -->
- <link rel="canonical" href="{{ page.url | absolute_url | uri_escape }}" />
- <meta name="google-site-verification" content="{{ site.verification.google | strip_newlines | strip_html | strip | normalize_whitespace | cgi_escape }}" />
- <meta name="yandex-verification" content="{{ site.verification.yandex | strip_newlines | strip_html | strip | normalize_whitespace | cgi_escape }}" />
- <meta name="robots" content="index, follow" />
+ <!-- Advanced meta tags -->
+ {% for tag in site.data.meta_tags %}
+ <meta name="{{ tag.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}"
+ content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}" />
+ {% endfor %}
<!-- Title / Description -->
+ <meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | downcase | capitalize }}" />
<meta name="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 100 }}" />
- <meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | capitalize }}" />
<title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 64 }}</title>
<!-- CSS -->