mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-12-06 17:27:57 +00:00
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:
@@ -3,9 +3,9 @@
|
||||
|
||||
|
||||
<!-- expandable code samples -->
|
||||
<script src="assets/js/expandcode.js"></script>
|
||||
<script src="{{currentpage.prefix}}assets/js/expandcode.js"></script>
|
||||
<!-- multi-code selection tabs -->
|
||||
<script src="assets/js/multicodetab.js"></script>
|
||||
<script src="{{currentpage.prefix}}assets/js/multicodetab.js"></script>
|
||||
<!-- copy code button -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user