From fd8a062527ae6d40a79fd6b14d9bbae62b298a57 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 12 Mar 2023 14:53:45 +0100 Subject: [PATCH] Move tracking for goatcounter to sidebar and separate twig --- .../learn2-dark/templates/partials/goatcounter.html.twig | 9 +++++++++ themes/learn2-dark/templates/partials/page.html.twig | 8 -------- themes/learn2-dark/templates/partials/sidebar.html.twig | 2 ++ 3 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 themes/learn2-dark/templates/partials/goatcounter.html.twig diff --git a/themes/learn2-dark/templates/partials/goatcounter.html.twig b/themes/learn2-dark/templates/partials/goatcounter.html.twig new file mode 100644 index 0000000..253ddc9 --- /dev/null +++ b/themes/learn2-dark/templates/partials/goatcounter.html.twig @@ -0,0 +1,9 @@ +
+ + +
diff --git a/themes/learn2-dark/templates/partials/page.html.twig b/themes/learn2-dark/templates/partials/page.html.twig index 7737019..d2614a1 100644 --- a/themes/learn2-dark/templates/partials/page.html.twig +++ b/themes/learn2-dark/templates/partials/page.html.twig @@ -3,12 +3,4 @@

{{ page.content|raw }}

- - - diff --git a/themes/learn2-dark/templates/partials/sidebar.html.twig b/themes/learn2-dark/templates/partials/sidebar.html.twig index 6e79b1b..2e23ca2 100644 --- a/themes/learn2-dark/templates/partials/sidebar.html.twig +++ b/themes/learn2-dark/templates/partials/sidebar.html.twig @@ -66,3 +66,5 @@ + +{% include 'partials/goatcounter.html.twig' %}