From e1e9694a5a843cc197d6cb1101ee9d072b2c9383 Mon Sep 17 00:00:00 2001 From: xenua Date: Sun, 3 Jul 2022 18:31:13 +0200 Subject: [PATCH] add debug info --- templates/page.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/page.html b/templates/page.html index 4e8d97e..9cdadf8 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,5 +1,7 @@ {% extends "base.html" %} +{% import "macros.html" as macros %} + {% block title %} {{ page.title }} - {{ config.title }} {% endblock %} @@ -14,7 +16,7 @@ {% endblock %} {% block nav %} - ../{{ page.slug }} + ../{{ page.slug }} {% endblock %} @@ -41,6 +43,10 @@ {% endif %} + {% if config.extra.xscratch_debug_info %} + Debug info: + {{ macros::debug(thing=page, label="page", recurse=2) }} + {% endif %} {% endblock %} {% block footer %}