Adding a protocol 'Open Graph'
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
b6cfea0c94
commit
e6b47f13c0
@ -12,6 +12,9 @@
|
|||||||
content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}" />
|
content="{{ tag.content | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
<!-- Open Graph -->
|
||||||
|
{% include opengraph.html %}
|
||||||
|
|
||||||
<!-- 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="{{ 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 | truncate: 100 | xml_escape }}" />
|
<meta name="description" content="{{ page.description | default: site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify | truncate: 100 | xml_escape }}" />
|
||||||
@ -31,4 +34,4 @@
|
|||||||
<!--[if lte IE 9]>
|
<!--[if lte IE 9]>
|
||||||
<script type="text/javascript" src="{{ '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | uri_escape }}"></script>
|
<script type="text/javascript" src="{{ '/assets/javascript/html5shiv-3.7.3.min.js' | relative_url | uri_escape }}"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
</head>
|
</head>
|
14
_includes/opengraph.html
Normal file
14
_includes/opengraph.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<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 }}" />
|
Loading…
Reference in New Issue
Block a user