# HG changeset patch # User David Douard # Date 1571674859 -7200 # Node ID 08b9a05b3d8dfc96ec9027fa66e0405eb5d9681a # Parent fb878b77337784a09654d6b1b5e05c399cd6f88d upgrade piwik code for matomo diff -r fb878b773377 -r 08b9a05b3d8d pelicanconf.py --- a/pelicanconf.py Sat Oct 19 00:32:18 2019 +0200 +++ b/pelicanconf.py Mon Oct 21 18:20:59 2019 +0200 @@ -16,22 +16,22 @@ if isprod: SITEURL = 'https://whatever.sdfa3.org' PIWIK = ''' + - - -''' + + ''' else: SITEURL = '' PIWIK = '' diff -r fb878b773377 -r 08b9a05b3d8d theme/templates/base.html --- a/theme/templates/base.html Sat Oct 19 00:32:18 2019 +0200 +++ b/theme/templates/base.html Mon Oct 21 18:20:59 2019 +0200 @@ -134,6 +134,12 @@ {% include 'trademark.html' %} + {% if PIWIK %} + + {% endif %} + diff -r fb878b773377 -r 08b9a05b3d8d theme/templates/piwik.html --- a/theme/templates/piwik.html Sat Oct 19 00:32:18 2019 +0200 +++ b/theme/templates/piwik.html Mon Oct 21 18:20:59 2019 +0200 @@ -8,9 +8,9 @@ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); + {% endif %}