From 8fe10157294b7636b352cccfcfcd35492939ff2d Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Tue, 21 Apr 2015 10:43:33 +0200 Subject: [PATCH] added piwik support --- pelicanconf.py | 4 ++ .../xsteadfastx-greg/templates/analytics.html | 60 ++++++++++++++----- themes/xsteadfastx-greg/templates/base.html | 9 ++- 3 files changed, 56 insertions(+), 17 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index b156a7d..8913fdc 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -75,3 +75,7 @@ LOAD_CONTENT_CACHE = True # disable tags TAGS_SAVE_AS = '' TAG_SAVE_AS = '' + +# PIWIK +PIWIK_URL = 'piwik.luftmentsh.org' +PIWIK_SITE_ID = 5 diff --git a/themes/xsteadfastx-greg/templates/analytics.html b/themes/xsteadfastx-greg/templates/analytics.html index c464f14..e27adf8 100644 --- a/themes/xsteadfastx-greg/templates/analytics.html +++ b/themes/xsteadfastx-greg/templates/analytics.html @@ -1,16 +1,46 @@ {% if GOOGLE_ANALYTICS %} - -{% endif %} \ No newline at end of file + +{% endif %} +{% if GAUGES %} + +{% endif %} +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %} diff --git a/themes/xsteadfastx-greg/templates/base.html b/themes/xsteadfastx-greg/templates/base.html index ab162d4..5f59a9e 100644 --- a/themes/xsteadfastx-greg/templates/base.html +++ b/themes/xsteadfastx-greg/templates/base.html @@ -75,7 +75,7 @@