From ff5a41cf1ebade56996ed4664bb2ad918d49f4b2 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 16 May 2023 14:00:39 -0400 Subject: [PATCH] goatcounter --- templates/base.html | 1 + templates/components/metadata/analytics.html | 13 +++++++++---- templates/index.html | 1 + templates/page.html | 1 + templates/section.html | 1 + 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/templates/base.html b/templates/base.html index 4c5b7be..3ac8132 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,6 +6,7 @@ {% set feature_flags = [] %} {% set redirect_target = "" %} {% set announcement = "" %} +{% set page_path = "" %} {% endblock variable_wormhole %} diff --git a/templates/components/metadata/analytics.html b/templates/components/metadata/analytics.html index bb61f46..7b2548f 100644 --- a/templates/components/metadata/analytics.html +++ b/templates/components/metadata/analytics.html @@ -1,3 +1,11 @@ +{# Analytics #} + + + + - -{# Experimental new analytics engine #} - \ No newline at end of file + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 4757205..08ac46f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,6 +25,7 @@ {# Pass data through to the base template #} {% block variable_wormhole %} {{ super() }} +{% set page_path = "/" %} {% set title = section.title %} {% set description = config.description %} {% if section.extra.uses %} diff --git a/templates/page.html b/templates/page.html index cc3132c..9705562 100644 --- a/templates/page.html +++ b/templates/page.html @@ -23,6 +23,7 @@ {# Pass data through to the base template #} {% block variable_wormhole %} {{ super() }} +{% set page_path = page.path %} {% set title = page.title %} {% set description = page.description %} {% set is_article = true %} diff --git a/templates/section.html b/templates/section.html index e162bc4..df83010 100644 --- a/templates/section.html +++ b/templates/section.html @@ -3,6 +3,7 @@ {# Pass data through to the base template #} {% block variable_wormhole %} {{ super() }} +{% set page_path = section.path %} {% set title = section.title %} {% set description = section.description %} {% if section.extra.uses %}