diff options
Diffstat (limited to '_includes/head.html')
-rw-r--r-- | _includes/head.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/_includes/head.html b/_includes/head.html index cdf0d01..005ab5c 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -13,7 +13,11 @@ {% endfor %} <!-- Open Graph --> - {% include opengraph.html %} + <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 }}" /> <!-- Title / Description --> <meta name="application-name" content="{{ page.title | default: site.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}" /> |