popov.link/_includes/opengraph.html
Valentin Popov e6b47f13c0
Adding a protocol 'Open Graph'
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-09-15 18:38:06 +04:00

14 lines
692 B
HTML

<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 | truncate: 100 | 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 }}" />