diff options
author | Valentin Popov <info@valentineus.link> | 2020-01-23 19:21:21 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-01-23 19:23:28 +0300 |
commit | 11c402a2938935111fc6c82f53b720eb71e355c7 (patch) | |
tree | 5be50a926a746832df84e7a4abd04eb967f0bb79 /_includes/head.html | |
parent | 28aec1dfdd90b7ffdd11321895ac37c0c2ab6fc6 (diff) | |
download | popov.link-11c402a2938935111fc6c82f53b720eb71e355c7.tar.xz popov.link-11c402a2938935111fc6c82f53b720eb71e355c7.zip |
Simplified data generation code
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes/head.html')
-rw-r--r-- | _includes/head.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/_includes/head.html b/_includes/head.html index aa6fb4f..e7fe582 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -8,20 +8,20 @@ <!-- Advanced meta tags --> {% for tag in site.data.meta_tags %} - <meta name="{{ tag.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" /> + <meta name="{{ tag.name | strip | normalize_whitespace | xml_escape }}" content="{{ tag.content | strip | normalize_whitespace | xml_escape }}" /> {% endfor %} <!-- 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:description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" /> + <meta property="og:title" content="{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}" /> + <meta property="og:description" content="{{ page.description | default: site.description | strip | normalize_whitespace | xml_escape }}" /> <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:url" content="{{ page.url | absolute_url | uri_escape }}" /> <!-- Title / Description --> - <meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" /> - <meta name="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" /> - <title>{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</title> + <meta name="application-name" content="{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}" /> + <meta name="description" content="{{ page.description | default: site.description | strip | normalize_whitespace | xml_escape }}" /> + <title>{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}</title> <!-- CSS --> <link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url | uri_escape }}" /> |