From a1021441c7745311db967ff54b068539376c052f Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Wed, 16 Feb 2022 10:46:28 -0800 Subject: [PATCH 1/2] Support pages in subfolder Pages that exist in subfolders such as /tutorials/ are now OK, as long as the add this line to the frontmatter: prefix: "/" This ensures that nav elements including top nav, sidebar, breadcrumbs, all work, and that the appropriate JavaScript loads as intended. --- template/base.html.jinja | 10 +++---- template/component-top-nav.html.jinja | 12 ++++----- template/page-calculator.html.jinja | 30 ++++++++++----------- template/page-impact.html.jinja | 4 +-- template/page-toml-checker.html.jinja | 4 +-- template/page-tx-sender.html.jinja | 18 ++++++------- template/page-websocket-api-tool.html.jinja | 12 ++++----- template/page-xrp-faucets.html.jinja | 6 ++--- template/page-xrp-overview.html.jinja | 4 +-- template/page-xrpl-overview.html.jinja | 2 +- template/pagetype-doc.html.jinja | 4 +-- template/pdf-doc.html.jinja | 2 +- 12 files changed, 54 insertions(+), 54 deletions(-) diff --git a/template/base.html.jinja b/template/base.html.jinja index 33f2d6c486..e761a1bfe3 100644 --- a/template/base.html.jinja +++ b/template/base.html.jinja @@ -58,15 +58,15 @@ {% if "js_editor" in currentpage.filters %} - - - - + + + + {% endif %} {% if target.light_theme_enabled %} - + {% endif %} {% block head %} diff --git a/template/component-top-nav.html.jinja b/template/component-top-nav.html.jinja index d5ab663766..23b7155cc9 100644 --- a/template/component-top-nav.html.jinja +++ b/template/component-top-nav.html.jinja @@ -1,6 +1,6 @@