From 5f3b8813683cb5fe8b30e2a5a7ea8503a929df6b Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Sat, 12 Nov 2016 11:32:05 +0300 Subject: [PATCH] Add GOOGLE_ANALYTICS, GAUGES and PIWIK analytics support Attempt to match the Pelican notmyidea theme featureset https://github.com/getpelican/pelican/blob/master/pelican/themes/notmyidea --- alchemy/templates/base.html | 6 ++- alchemy/templates/include/analytics.html | 50 ++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 alchemy/templates/include/analytics.html diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html index c807fa3..a59ac0b 100644 --- a/alchemy/templates/base.html +++ b/alchemy/templates/base.html @@ -2,7 +2,6 @@ - {% block head %} @@ -47,13 +46,16 @@ + {% block head %}{% endblock %} + - {% endblock %} + + {% include 'include/analytics.html' %} diff --git a/alchemy/templates/include/analytics.html b/alchemy/templates/include/analytics.html new file mode 100644 index 0000000..edd6efe --- /dev/null +++ b/alchemy/templates/include/analytics.html @@ -0,0 +1,50 @@ +{% if GOOGLE_ANALYTICS %} + +{% endif %} +{% if GAUGES %} + +{% endif %} +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %}