aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/head.html6
-rw-r--r--_includes/opengraph.html14
2 files changed, 5 insertions, 15 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 }}" />
diff --git a/_includes/opengraph.html b/_includes/opengraph.html
deleted file mode 100644
index ae5a731..0000000
--- a/_includes/opengraph.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<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