Website - permalink is not what it says it is #2104

Closed
kenzierocks opened this Issue Feb 27, 2014 · 4 comments

Comments

Projects
None yet
3 participants

The pretty permalink built-in is said to be /:categories/:year/:month/:day/:title/, but when putting that in instead of pretty it generates different results.

With pretty: /2014/02/20/a-post-test-or-welcome/index.html
With /:categories/:year/:month/:day/:title/: /2014/02/20/a-post-test-or-welcome/

It seems that pretty actually appends a index.html to the URL. This is actually documented, but it makes no sense for the "same" style to not do the same. Looking at the actual _site generated by the long version, there is an index.html for each post, but because using a slash defaults to the index.html this works. However, when using pretty, the resulting page.url has an index.html instead of not having one.

Edit: One last thing, using pretty messes up the entire site, organizing my non-post pages into index.html files under their respective folders.

Member

penibelst commented May 12, 2014

I can’t reproduce it.

The original problem with pretty seems to have disappeared. But the second one remains. My default about.html is at http://techshroom.github.io/about.html. But with pretty on instead of my copy+paste of pretty, it generates as http://techshroom.github.io/about/, which I don't want. Fork https://github.com/TechShroom/TechShroom.github.io/ to test it.

Member

penibelst commented May 12, 2014

Looks like a dupe for #2399

Yes, it does.

@jekyllbot jekyllbot locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.