aboutsummaryrefslogtreecommitdiff
path: root/_includes/opengraph.html
blob: ae5a7312507d465de70a72a9952770f86297d548 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 }}" />