Add SEO stuff

- <head> related SEO
- Twitter Cards and Open Graph metas
- Webmaster tool verifications
This commit is contained in:
Michael Rose
2016-02-23 00:17:39 -05:00
parent 7139d61c62
commit fec3508b5d
5 changed files with 167 additions and 44 deletions
+1 -12
View File
@@ -1,18 +1,7 @@
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} &#8211; {% endif %}{{ site.title }}</title>
{% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html }}">{% endif %}
<meta name="keywords" content="{{ page.tags | join: ', ' }}">
{% if page.author %}
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
{% endif %}
{% include open-graph.html %}
{% include seo.html %}
{% if site.owner.google.verify %}<!-- Webmaster Tools verfication -->
<meta name="google-site-verification" content="{{ site.owner.google.verify }}">{% endif %}
{% if site.owner.bing-verify %}<meta name="msvalidate.01" content="{{ site.owner.bing-verify }}">{% endif %}
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: absurl }}">
<link href="{{ absurl }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
<!-- http://t.co/dKP3o1e -->