Browse Source

add debug info

Julia Luna 2 years ago
parent
commit
9694215353
Signed by: xenua
GPG Key ID: 6A0C04FA9A7D7582
  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