diff --git a/.gitignore b/.gitignore index b872dbd..5447768 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ -test/output/ \ No newline at end of file +test/output/ + +# These are the customizable template files. +templates/include/cornerstone.html +templates/include/trackingcode.html +templates/include/newsletter.html \ No newline at end of file diff --git a/static/images/192px-Feed-icon.svg.pngZone.Identifier b/static/images/192px-Feed-icon.svg.pngZone.Identifier deleted file mode 100644 index d7ae496..0000000 --- a/static/images/192px-Feed-icon.svg.pngZone.Identifier +++ /dev/null @@ -1,4 +0,0 @@ -[ZoneTransfer] -ZoneId=3 -ReferrerUrl=https://en.wikipedia.org/ -HostUrl=https://upload.wikimedia.org/wikipedia/en/thumb/4/43/Feed-icon.svg/192px-Feed-icon.svg.png diff --git a/templates/base.html b/templates/base.html index 09952db..d21e129 100644 --- a/templates/base.html +++ b/templates/base.html @@ -113,7 +113,7 @@ -{% if IMAGETRACKINGCODE is sameas True %} +{% if IMAGETRACKINGCODE %} {{ IMAGETRACKINGCODE }} {% endif %} diff --git a/templates/include/trackingcode.html b/templates/include/trackingcode.html index 9c31277..11df21b 100644 --- a/templates/include/trackingcode.html +++ b/templates/include/trackingcode.html @@ -1,20 +1,17 @@ - - \ No newline at end of file + var _paq = window._paq = window._paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(["disableCookies"]); + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//stats.jmkengineering.com/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '1']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); + + + diff --git a/templates/index.html b/templates/index.html index 7f2a94f..caa47f0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -33,18 +33,8 @@ {% if NEWSLETTER %} {% endif %}