Add non-obtrusive debug info for page root

This commit is contained in:
Adam Schmideg 2019-03-22 16:19:33 +01:00
parent e4490becd2
commit 3b921e8901
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }} | {% endif %}Go Ethereum</title>
<!-- debug root:{% include link.html url="/debug-path" %} -->
<link rel="icon" type="image/png" href="{% include link.html url=site.favicon %}" />
{% if layout.common-css %}

View File

@ -1,2 +1,2 @@
{% capture root %}{{ page.root or site.default_root }}{% endcapture %}
{% capture root %}{% if page.root %}{{ page.root }}{% else %}{{ site.default_root }}{% endif %}{% endcapture %}
{{ include.url | remove: ".html" | prepend: root | replace: '//', '/' }}