Add Support for Google Analytics and SEO

Signed-off-by: Dominik Prodinger <prodinger.d@outlook.com>
This commit is contained in:
Dominik Prodinger 2018-10-03 09:29:50 +02:00
parent 4eac3f45c5
commit 8eab530370
No known key found for this signature in database
GPG Key ID: 579FE90AF376722E
2 changed files with 9 additions and 10 deletions

View File

@ -4,6 +4,9 @@ description: "Minimal Jekyll theme for storytellers"
baseurl: "/tale"
url: "https://chesterhow.github.io"
# Google Analytics
google_analytics: UA—XXXXXXXX-X
# Author
author:
name: Chester How

View File

@ -1,17 +1,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if page.title == "Home" %}
<meta name="description" content="{{ site.description }}">
{% endif %}
<title>
{% if page.title == "Home" %}
{{ site.title }}
{% else %}
{{ page.title }} &middot; {{ site.title }}
{% endif %}
</title>
{% seo %}
<!-- CSS -->
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
@ -24,4 +15,9 @@
<!-- RSS -->
{% feed_meta %}
<!-- Google Analytics-->
{% if site.google_analytics and jekyll.environment == 'production' %}
{% include analytics.html %}
{% endif %}
</head>