diff options
author | Valentin Popov <info@valentineus.link> | 2018-04-24 19:25:51 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-04-24 19:32:42 +0300 |
commit | 95047707298544a969b2e6eb3e84144b201f2824 (patch) | |
tree | c1ba0ccab09321da42bc7ccc686d4934c2edb518 | |
parent | bbf5de4c464b9d107f15c8c7233c74e36fc1e6d3 (diff) | |
download | popov.link-95047707298544a969b2e6eb3e84144b201f2824.tar.xz popov.link-95047707298544a969b2e6eb3e84144b201f2824.zip |
Collection with additional meta tags
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | _data/meta_tags.yml | 8 | ||||
-rw-r--r-- | _includes/head.html | 13 |
2 files changed, 15 insertions, 6 deletions
diff --git a/_data/meta_tags.yml b/_data/meta_tags.yml new file mode 100644 index 0000000..3342b40 --- /dev/null +++ b/_data/meta_tags.yml @@ -0,0 +1,8 @@ +- name: "google-site-verification" + content: "BkBsaYAO1LuQDRceyK2odvcpfuP2al0y04LnBda1uvE" + +- name: "yandex-verification" + content: "14221e61b87bbd27" + +- name: "robots" + content: "index, follow" 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 --> |