Follow

static site generator question:
if you have both project.md and project/index.md

what should take precedence?
either of those alone would output to /project/index.html

:boost_requested:

@f0x They shouldn't result in the same thing.

project.md should result in project.html while project/index.html should result in project/index.html

At least when your static site generator is working properly.

@f0x The way I do it in my generator script (git.sr.ht/~jbauer/paritybit.ca) is to treat both as unique pages.

So projects.md will become /projects.html and projects/index.md becomes /projects/index.html.

If doing that isn't possible, I feel like projects/index.md should have priority because it feels like it more naturally flows/makes sense given the input.

@f0x Since they conflict, I would expect the generator to output an error and exit.

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.