0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-03 08:00:26 +03:00

Simplified data generation code

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2020-01-23 20:21:21 +04:00
parent 28aec1dfdd
commit 11c402a293
7 changed files with 17 additions and 17 deletions

View File

@ -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 }}" />