Skip to content

Post dates in URLs / "transparent sections" #408

@porglezomp

Description

@porglezomp

I'm trying to migrate my site over from Pelican right now.
I'd like to keep the same page organization, with pages at /posts/yyyy/mm/slug/.

I've managed to get most of the way there by reorganizing my content directory to have explicit date folders, added _index.md to all of them, and built a template that iterates over the nested sections.

Unfortunately, I think I've hit a roadblock—pagination doesn't seem like it'll work on the posts if I have nested sections, since none of the posts are direct children of posts.

The most flexible solution to my problem would be to be able to request that the year and month sections are "transparent" or "transitive" or something, so that every page in posts/2018/09 is also a page in posts/2018 and posts, allowing pagination and sorting to work.

It might also be nice to have some easier support for nested sections like this that doesn't require having an _index.md in every single subfolder, but that's just a ergonomics, not fundamentally different.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions