Update <head> for Twitter cards

This commit is contained in:
foo-dogsquared 2019-01-04 16:02:19 +08:00
parent b798e0c5e4
commit 0b56dc6b9e

View File

@ -3,6 +3,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{%- seo -%}
{%- if page.layout == 'post' -%}
<meta property="twitter:site" content="{{ site.title }}">
<meta property="twitter:type" content="article">
<meta property="og:url" content="{{ page.permalink | absolute_url }}">
<meta property="twitter:image" content="{{ 'assets/main/personal-logo.jpg' | relative_url }}">
{%- endif -%}
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
<link rel="icon" type="image/jpg" href=" {{ '/assets/main/personal-logo.jpg' | relative_url }}" sizes="32x32">
{%- feed_meta -%}