Revert "Add Google Analytics Support and Improve SEO"

This reverts commit 628e6dce5d.
This commit is contained in:
Dominik Prodinger 2018-10-03 09:10:55 +02:00
parent 628e6dce5d
commit 9bd38e5340
3 changed files with 10 additions and 15 deletions

View file

@ -4,9 +4,6 @@ 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,6 +0,0 @@
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>

View file

@ -1,8 +1,17 @@
<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 %}
{% seo %}
<title>
{% if page.title == "Home" %}
{{ site.title }}
{% else %}
{{ page.title }} &middot; {{ site.title }}
{% endif %}
</title>
<!-- CSS -->
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
@ -15,9 +24,4 @@
<!-- RSS -->
{% feed_meta %}
<!-- Google Analytics-->
{% if site.google_analytics and jekyll.environment == 'production' %}
{% include analytics.html %}
{% endif %}
</head>