Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensionless numbered permalink pages filename wrong #233

Open
MolotovCherry opened this issue Mar 31, 2022 · 0 comments
Open

Extensionless numbered permalink pages filename wrong #233

MolotovCherry opened this issue Mar 31, 2022 · 0 comments

Comments

@MolotovCherry
Copy link

MolotovCherry commented Mar 31, 2022

In the tutorial it says for the settings
#permalink: '/page/:num' # Pages are html files, linked jekyll extensionless permalink style.

The url returned is indeed page/:num, but the pages are saved as page/:num:index.html, and thus the generated links are wrong and you get a 404.

Even more interesting is, if you set it to page/:num index instead of generating page/2 index.html, it generates page/2 indexindex.html

The tutorial says Optional, the default name of the index file for generated pages (e.g. 'index.html')
If it's the default name of the index file, then if you specify an actual name, the default should no longer be applied (otherwise this happens).

Setting indexpage: '' to "fix" it only causes an error. (probably understandable since files do have to be named something)

Edit:: I guess a lot of this is because the way this was written, it expects to generate url's like /name/num/, so it always places index in there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant