summaryrefslogtreecommitdiffstats
path: root/blog/_includes/opengraph.html
blob: 2b2428cd8866e7c5559bae2aecdd7da35b9552c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% if page.title %}
  <meta property="og:title" content="{{ page.title }}">
{% endif %}
<meta property="og:type" content="article">
<meta property="og:url" content="{{ page.url | prepend: site.baseurl }}">
<meta property="og:site_name" content="{{ site.title }}">
{% if page.excerpt %}
  <meta property="og:description" content="{{ page.excerpt | strip_html }}">
{% else %}
  <meta property="og:description" content="{{ site.description }}">
{% endif %}
{% if page.page-image %}
  <meta property="og:image" content="{{ page.page-image | asset_path | prepend: site.baseurl }}">
{% endif %}