From 856f47c8a565ab72e6755d1e67c4884599bcf740 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 15 Aug 2023 14:27:51 -0300 Subject: [PATCH 1/2] updating templates --- .gitignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 From d27f64de3cf15237091fd33caa5d870538abd4dc Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 15 Aug 2023 14:28:58 -0300 Subject: [PATCH 2/2] minor updates --- .../192px-Feed-icon.svg.pngZone.Identifier | 4 --- templates/base.html | 2 +- templates/include/trackingcode.html | 33 +++++++++---------- templates/index.html | 14 ++------ 4 files changed, 18 insertions(+), 35 deletions(-) delete mode 100644 static/images/192px-Feed-icon.svg.pngZone.Identifier 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 7599b47..3216926 100644 --- a/templates/base.html +++ b/templates/base.html @@ -111,7 +111,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 %}