~hristoast/hristoast

a0854d5eec26a25d4bf89d14b7aa6939bc9d75aa — Hristos N. Triantafillou 4 months ago c54bc75
Only use tracking js on the live site
2 files changed, 8 insertions(+), 1 deletions(-)

M soupault.conf
M templates/main.html
M soupault.conf => soupault.conf +8 -0
@@ 168,3 168,11 @@
  widget = "preprocess_element"
  selector = '*[class^="language-"]'
  command = 'highlight -O html -f --syntax=$(echo $ATTR_CLASS | sed -e "s/language-//")'

[widgets.tracking-js]
  profile = "live"
  after = "source-link"
  widget = "insert_html"
  html = '<script data-goatcounter="https://stats.hristos.co/count" async src="//stats.hristos.co/count.js"></script>'
  selector = "body"
  parse = true

M templates/main.html => templates/main.html +0 -1
@@ 60,6 60,5 @@
    </footer>
    <div id="timestamp" class="center" title="A last modified timestamp derived from git.">This page was last modified on: <span id="git-timestamp"></span></div>
    <div id="source-link"></div>
    <script data-goatcounter="https://stats.hristos.co/count" async src="//stats.hristos.co/count.js"></script>
  </body>
</html>