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

@@ -11,7 +11,7 @@
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<script src="assets/vendor/jquery-3.6.0.min.js"></script>
<script src="{{currentpage.prefix}}assets/vendor/jquery-3.6.0.min.js"></script>
<link href="{{currentpage.prefix}}assets/css/devportal2021.css" rel="stylesheet" />
{% block head %}