diff options
author | Valentin Popov <info@valentineus.link> | 2018-09-15 17:48:53 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-09-15 17:48:53 +0300 |
commit | e2d720bead55e69588f188463361909754f74346 (patch) | |
tree | 62320c690ae042ae49d3f7f4170c5e591ea50dd1 /_includes | |
parent | 4193b3c9116afc20c428f8e0da8a876efad3d9ee (diff) | |
download | popov.link-e2d720bead55e69588f188463361909754f74346.tar.xz popov.link-e2d720bead55e69588f188463361909754f74346.zip |
Combining files
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/head.html | 6 | ||||
-rw-r--r-- | _includes/opengraph.html | 14 |
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 |