Add Twitter, Facebook and G+ tags for posts
This commit is contained in:
parent
7992c0879b
commit
5831c85fc0
1 changed files with 20 additions and 0 deletions
|
@ -25,4 +25,24 @@
|
||||||
|
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
<link rel="alternate" type="application/atom+xml" title="{{ site.title }} Feed" href="{{ site.baseurl }}feed.xml">
|
<link rel="alternate" type="application/atom+xml" title="{{ site.title }} Feed" href="{{ site.baseurl }}feed.xml">
|
||||||
|
|
||||||
|
{% if page.category == "posts" %}
|
||||||
|
<!-- Twitter -->
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
<meta name="twitter:site" content="@nifoc_">
|
||||||
|
<meta name="twitter:title" content="{{ page.title }}">
|
||||||
|
<meta name="twitter:description" content="{{ page.description }}">
|
||||||
|
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
|
||||||
|
|
||||||
|
<!-- Facebook -->
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:site_name" content="{{ site.title }}">
|
||||||
|
<meta property="og:title" content="{{ page.title }}">
|
||||||
|
<meta property="og:description" content="{{ page.description }}">
|
||||||
|
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
||||||
|
|
||||||
|
<!-- Schema.org -->
|
||||||
|
<meta itemprop="name" content="{{ page.title }}">
|
||||||
|
<meta itemprop="description" content="{{ page.description }}">
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue