Browse Source

add debug info

main
xenua 3 years ago
parent
commit
e1e9694a5a
  1. 8
      templates/page.html

8
templates/page.html

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
{% extends "base.html" %}
{% import "macros.html" as macros %}
{% block title %}
{{ page.title }} - {{ config.title }}
{% endblock %}
@ -14,7 +16,7 @@ @@ -14,7 +16,7 @@
{% endblock %}
{% block nav %}
<span><a href="..">..</a>/{{ page.slug }}</span>
<span><a class="stealth" href="..">../{{ page.slug }}</a></span>
<noscript id="theme-toggle-placeholder"></noscript>
{% endblock %}
@ -41,6 +43,10 @@ @@ -41,6 +43,10 @@
</ul>
</span>
{% endif %}
{% if config.extra.xscratch_debug_info %}
<span><strong>Debug info:</strong></span>
{{ macros::debug(thing=page, label="page", recurse=2) }}
{% endif %}
{% endblock %}
{% block footer %}

Loading…
Cancel
Save