refactor(http): Update site header
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
4b85eb999c
commit
122d8864a7
@ -1,3 +1,6 @@
|
|||||||
|
{% assign description = page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
||||||
|
{% assign title = page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<!-- Meta tags -->
|
<!-- Meta tags -->
|
||||||
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1, shrink-to-fit=no, width=device-width" />
|
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1, shrink-to-fit=no, width=device-width" />
|
||||||
@ -8,21 +11,21 @@
|
|||||||
|
|
||||||
<!-- Advanced meta tags -->
|
<!-- Advanced meta tags -->
|
||||||
{% for tag in site.data.meta_tags %}
|
{% for tag in site.data.meta_tags %}
|
||||||
<meta name="{{ tag.name | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}"
|
<meta name="{{ tag.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}"
|
||||||
content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}" />
|
content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<!-- Open Graph -->
|
<!-- Open Graph -->
|
||||||
<meta property="og:title" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
<meta property="og:title" content="{{ title }}" />
|
||||||
<meta property="og:description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 100 | xml_escape }}" />
|
<meta property="og:description" content="{{ description }}" />
|
||||||
<meta property="og:type" content="{{ page.layout | replace: 'post', 'article' | replace: 'page', 'website' | default: 'website' }}" />
|
<meta property="og:type" content="{{ page.layout | replace: 'post', 'article' | replace: 'page', 'website' | default: 'website' }}" />
|
||||||
<meta property="og:image" content="{{ page.image | absolute_url | uri_escape }}" />
|
<meta property="og:image" content="{{ page.image | absolute_url | uri_escape }}" />
|
||||||
<meta property="og:url" content="{{ page.url | absolute_url | uri_escape }}" />
|
<meta property="og:url" content="{{ page.url | absolute_url | uri_escape }}" />
|
||||||
|
|
||||||
<!-- Title / Description -->
|
<!-- Title / Description -->
|
||||||
<meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" />
|
<meta name="application-name" content="{{ title }}" />
|
||||||
<meta name="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 100 | xml_escape }}" />
|
<meta name="description" content="{{ description }}" />
|
||||||
<title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 64 | xml_escape }}</title>
|
<title>{{ title }}</title>
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url | uri_escape }}" />
|
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url | uri_escape }}" />
|
||||||
@ -33,7 +36,7 @@
|
|||||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon-32x32.png' | relative_url | uri_escape }}" />
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon-32x32.png' | relative_url | uri_escape }}" />
|
||||||
|
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ site.rss | relative_url | uri_escape }}" />
|
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ site.rss | absolute_url | uri_escape }}" />
|
||||||
|
|
||||||
<!--[if lte IE 9]>
|
<!--[if lte IE 9]>
|
||||||
<script defer type="text/javascript" src="{{ '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | uri_escape }}"></script>
|
<script defer type="text/javascript" src="{{ '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | uri_escape }}"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user