Closed streats closed 3 months ago
I added navigation_weight to each page's frontmatter as follows: |
filename | title | navigation_weight |
---|---|---|---|
index.md | Welcome | 1 | |
about.md | About | 2 | |
resume.md | Resumé | 3 | |
/work/index.md | Writing samples | 4 | |
/case-studies/index.md | Case studies | 5 | |
/craft-notes/index.md | Craft notes | 6 | |
accessibility-statement.md | Accessibility statement | 7 | |
contact.md | Contact | 8 |
This should create the order:
But it hasn't. I can't figure out what order it's based on. It starts alphabetical, then appears random.
I updated config.yml to include
the list of links in the order but that also doesn't seem to have made a difference.
I changed the weights to be multiples of 10 (10,20,30, etc) as otherwise it will eventually sort as 1, 10, 11, etc.
OK so I renamed a few files numerically (01_about.md, 02_resume.md) and it sorted by those. This isn't ideal because I want /work
to be the 4th link and I can't rename that numerically because it's a subdirectory.
I reverted the namefiles and just removed the theme reference in _config.yml
so it now doesn't use a theme at all and thus has no menu. This is fine for now as I manually link to most pages (except contact) from the home page.
Fixed
Current:
Desired: