Add twitter cards and open graph
This commit is contained in:
parent
119cdea37f
commit
e2c8f2b6fa
22
_includes/meta.html
Normal file
22
_includes/meta.html
Normal file
@ -0,0 +1,22 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
<meta name="author" content="{{ site.author }}" />
|
||||
{% if page.summary %}
|
||||
<meta name="description" content="{{ page.summary }}" />
|
||||
{% else %}
|
||||
<meta name="description" content="{{ site.description }}" />
|
||||
{% endif %}
|
||||
<meta property="og:site_name" content="{{ site.title }}"/>
|
||||
<meta property="og:type" content="blog"/>
|
||||
<meta name="og:url" content="{{ site.url }}{{ page.url }}">
|
||||
{% if page.title %}<meta property="og:title" content="{{ page.title }}"/>{% endif %}
|
||||
{% if page.summary %}<meta property="og:description" content="{{ page.summary }}"/>{% endif %}
|
||||
{% if page.image %}<meta property="og:image" content=""/>{% endif %}
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:creator" content="@walkah">
|
||||
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
|
||||
<meta name="twitter:title" content="{{ page.title }}">
|
||||
{% if page.summary %}<meta name="twitter:description" content="{{ page.summary }}">{% endif %}
|
||||
{% if page.image %}<meta name="twitter:image" content="{{ page.image }}">{% endif %}
|
||||
<meta name="microid" content="mailto+http:sha1:d1026e95deb9e779de34648de0c7e2c83e1d2a73" />
|
@ -1,20 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
|
||||
<meta name="description" content="{{ site.description }}">
|
||||
<meta name="author" content="{{ site.author }}">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
{% include meta.html %}
|
||||
|
||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
|
||||
<link href='http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/latest/css/font-awesome.css" rel="stylesheet">
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="/favicon.ico" >
|
||||
<link href="/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml">
|
||||
|
||||
<meta name="microid" content="mailto+http:sha1:d1026e95deb9e779de34648de0c7e2c83e1d2a73" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@ -31,7 +26,7 @@
|
||||
</nav>
|
||||
</div>
|
||||
<section id="main">
|
||||
{{ content }}
|
||||
{{ content }}
|
||||
</section>
|
||||
<footer>
|
||||
© 2002-{{ site.time | date:"%Y" }} {{ site.author }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user