diff options
Diffstat (limited to '_includes/opengraph.html')
-rw-r--r-- | _includes/opengraph.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/_includes/opengraph.html b/_includes/opengraph.html new file mode 100644 index 0000000..ae5a731 --- /dev/null +++ b/_includes/opengraph.html @@ -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 }}" />
\ No newline at end of file |