From 3b921e8901a90c6e2f6852d935f49f1144fa541d Mon Sep 17 00:00:00 2001 From: Adam Schmideg Date: Fri, 22 Mar 2019 16:19:33 +0100 Subject: [PATCH] Add non-obtrusive debug info for page root --- _includes/head.html | 1 + _includes/link.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_includes/head.html b/_includes/head.html index c077241bab..3486c6af2b 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,6 +4,7 @@ {% if page.title %}{{ page.title }} | {% endif %}Go Ethereum + {% if layout.common-css %} diff --git a/_includes/link.html b/_includes/link.html index f1f0abea6b..007294a339 100644 --- a/_includes/link.html +++ b/_includes/link.html @@ -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: '//', '/' }} \ No newline at end of file