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.
This commit is contained in:
mDuo13
2022-02-16 10:46:28 -08:00
parent e458d6637e
commit a1021441c7
12 changed files with 54 additions and 54 deletions

View File

@@ -93,12 +93,12 @@
<p class="mb-10">{% trans %}XRP can be sent directly without needing a central intermediary, making it a convenient instrument in bridging two different currencies quickly and efficiently. It is freely exchanged on the open market and used in the real world for enabling cross-border payments and microtransactions.{% endtrans %}</p>
<div class="card-grid card-grid-2xN mb-10">
<div>
<img class="mw-100 mb-2 invertible-img" src="assets/img/icons/briefcase.svg">
<img class="mw-100 mb-2 invertible-img" src="{{currentpage.prefix}}assets/img/icons/briefcase.svg">
<h6 class="fs-4-5">{% trans %}Financial Institutions{% endtrans %}</h6>
<p class="">{% trans %}Leverage XRP as a bridge currency to facilitate faster, more affordable cross-border payments around the world.{% endtrans %}</p>
</div>
<div>
<img class="mw-100 mb-2 invertible-img" src="assets/img/icons/user.svg">
<img class="mw-100 mb-2 invertible-img" src="{{currentpage.prefix}}assets/img/icons/user.svg">
<h6 class="fs-4-5">{% trans %}Individual Consumers{% endtrans %}</h6>
<p>{% trans %}Use XRP to move different currencies around the world. {% endtrans %}</p>
</div>