Add Support for Google Analytics and SEO
Signed-off-by: Dominik Prodinger <prodinger.d@outlook.com>
This commit is contained in:
parent
4eac3f45c5
commit
8eab530370
2 changed files with 9 additions and 10 deletions
|
@ -4,6 +4,9 @@ description: "Minimal Jekyll theme for storytellers"
|
||||||
baseurl: "/tale"
|
baseurl: "/tale"
|
||||||
url: "https://chesterhow.github.io"
|
url: "https://chesterhow.github.io"
|
||||||
|
|
||||||
|
# Google Analytics
|
||||||
|
google_analytics: UA—XXXXXXXX-X
|
||||||
|
|
||||||
# Author
|
# Author
|
||||||
author:
|
author:
|
||||||
name: Chester How
|
name: Chester How
|
||||||
|
|
|
@ -1,17 +1,8 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
{% if page.title == "Home" %}
|
|
||||||
<meta name="description" content="{{ site.description }}">
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<title>
|
{% seo %}
|
||||||
{% if page.title == "Home" %}
|
|
||||||
{{ site.title }}
|
|
||||||
{% else %}
|
|
||||||
{{ page.title }} · {{ site.title }}
|
|
||||||
{% endif %}
|
|
||||||
</title>
|
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
||||||
|
@ -24,4 +15,9 @@
|
||||||
|
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
{% feed_meta %}
|
{% feed_meta %}
|
||||||
|
|
||||||
|
<!-- Google Analytics-->
|
||||||
|
{% if site.google_analytics and jekyll.environment == 'production' %}
|
||||||
|
{% include analytics.html %}
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue