Browse Source

add debug info

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

8
templates/page.html

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

Loading…
Cancel
Save