Hello,
How do folks handle cases where you need pages where date/weight is not appropriate within a sorted section? For example, take this layout, which is relatively common. I have a page with blog, including an archive page:
site
- blog
- 2023
- _ index.md
- 2024
- _ index.md
- _ index.md
- archive.md
- _ index.md
- foo.md
2023
,2024
are transparent sections (transparent = true
)blog/_index.md
includessort_by = "date"
to be able to havepage.lower, page.higher
blog/archive.md
does not have adate
in metadata set, as it makes no sense
The behaviour is such that the archive.md
page gets completely ignored and not rendered. I would expect it to be ignored from the sorting set, but still rendered into a file.
The only thing I can think of is moving the archive out to the root and giving it an alias into blog/archive.html
, but that is cumbersome and not ideal user experience. I could also add another level to the directories, but I would prefer not having extraneous directories just to make something simple like this work.
Can anyone propose other workarounds? How do folks deal with setup like this?