diff --git a/_config.yml b/_config.yml index 0c80841..f42db81 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000..e909005 --- /dev/null +++ b/_includes/analytics.html @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html index 41789c6..6e7d61d 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,17 +1,8 @@ - {% if page.title == "Home" %} - - {% endif %} - - {% if page.title == "Home" %} - {{ site.title }} - {% else %} - {{ page.title }} · {{ site.title }} - {% endif %} - + {% seo %} @@ -24,4 +15,9 @@ {% feed_meta %} + + + {% if site.google_analytics and jekyll.environment == 'production' %} + {% include analytics.html %} + {% endif %}