Created
April 9, 2020 06:12
-
-
Save laiyenju/8fa4aaad9364085070160fa4da733a5c to your computer and use it in GitHub Desktop.
Twitter Cards and Open Graph metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<!--OpenGraph with Twitter Card--> | |
<meta name="twitter:card" content="summary_large_image"> | |
<meta name="twitter:site" content="@theYenLai"> | |
{% if page.feature_image %} | |
<meta property="og:site_name" content="{{ site.title }}"> | |
<meta property="og:title" content="{{ page.title }}"> | |
<meta property="og:url" content="http://{{ site.url }}{{ site.baseurl }}{{ page.url }}"> | |
<meta property="og:image" content="{{ site.url }}/{{ page.feature_image }}"> | |
<meta property="og:description" content="{{ page.excerpt | strip_html | strip_newlines }}"> | |
{% else %} | |
<meta name="twitter:site" content="@theYenLai"> | |
<meta property="og:site_name" content="{{ site.title }}"> | |
<meta property="og:title" content="{{ page.title }}"> | |
<meta property="og:url" content="http://{{ site.url }}{{ site.baseurl }}{{ page.url }}"> | |
<meta property="og:image" content="{{ site.url }}/{{ site.favicon }}"> | |
<meta property="og:description" content="{{ page.excerpt | strip_html | strip_newlines }}"> | |
{% endif %} | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment