diff options
Diffstat (limited to 'blog/_includes/opengraph.html')
-rw-r--r-- | blog/_includes/opengraph.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/blog/_includes/opengraph.html b/blog/_includes/opengraph.html new file mode 100644 index 0000000..46b099a --- /dev/null +++ b/blog/_includes/opengraph.html @@ -0,0 +1,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 | prepend: site.baseurl }}"> +{% endif %} |