Collection with additional meta tags

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-04-24 20:25:51 +04:00
parent bbf5de4c46
commit 9504770729
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 15 additions and 6 deletions

8
_data/meta_tags.yml Normal file
View File

@ -0,0 +1,8 @@
- name: "google-site-verification"
content: "BkBsaYAO1LuQDRceyK2odvcpfuP2al0y04LnBda1uvE"
- name: "yandex-verification"
content: "14221e61b87bbd27"
- name: "robots"
content: "index, follow"

View File

@ -3,17 +3,18 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" /> <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="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <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" /> <link rel="profile" href="http://gmpg.org/xfn/11" />
<!-- Search engines --> <!-- Advanced meta tags -->
<link rel="canonical" href="{{ page.url | absolute_url | uri_escape }}" /> {% for tag in site.data.meta_tags %}
<meta name="google-site-verification" content="{{ site.verification.google | strip_newlines | strip_html | strip | normalize_whitespace | cgi_escape }}" /> <meta name="{{ tag.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}"
<meta name="yandex-verification" content="{{ site.verification.yandex | strip_newlines | strip_html | strip | normalize_whitespace | cgi_escape }}" /> content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}" />
<meta name="robots" content="index, follow" /> {% endfor %}
<!-- Title / Description --> <!-- 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="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> <title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 64 }}</title>
<!-- CSS --> <!-- CSS -->