category_dir/index.html is not generated #553

Closed
knl opened this Issue May 9, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@knl

knl commented May 9, 2012

Hi,

There is no index.html generated in the category_dir. This directory is populated with category names, where each contains the corresponding index.html file.

Is this by design? If not, could it be fixed, because I get the directory listing when I enter http://mywebsite/blog/categories.

@DarkSector

This comment has been minimized.

Show comment Hide comment
@DarkSector

DarkSector May 9, 2012

That's weird because I get a 404 when I check for categories going to the link http://foo.bar.com/blog/categories/

That's weird because I get a 404 when I check for categories going to the link http://foo.bar.com/blog/categories/

@knl

This comment has been minimized.

Show comment Hide comment
@knl

knl May 10, 2012

@DarkSector that is because your server is set to prevent directory listings. Mine is set to allow them. Either way, having no category list bugs me :)

knl commented May 10, 2012

@DarkSector that is because your server is set to prevent directory listings. Mine is set to allow them. Either way, having no category list bugs me :)

@DarkSector

This comment has been minimized.

Show comment Hide comment
@DarkSector

DarkSector May 10, 2012

Well I use Github for serving the pages, so I wonder if there's a way to allow them and yes, it bugs me to that there is no category listing.

Well I use Github for serving the pages, so I wonder if there's a way to allow them and yes, it bugs me to that there is no category listing.

@imathis

This comment has been minimized.

Show comment Hide comment
@imathis

imathis May 20, 2012

Owner

Since people can specify any directory for categories I'd rather not write the code to spit out a bunch of blank html files. For example some people are publishing their category directories to the root so you'd get site.com/gardening/. In that case you wouldn't want to write out an index.html. Managing all the conditional circumstances isn't something I want to write or maintain. You could use the same argument to suggest I add index.html files to every directory where there isn't one. That's just not a road I want to go down.

@knl You should be able to get what you're after by running echo "" > source/blog/categories/index.html. This will add a blank index.html to your categories directory.

Owner

imathis commented May 20, 2012

Since people can specify any directory for categories I'd rather not write the code to spit out a bunch of blank html files. For example some people are publishing their category directories to the root so you'd get site.com/gardening/. In that case you wouldn't want to write out an index.html. Managing all the conditional circumstances isn't something I want to write or maintain. You could use the same argument to suggest I add index.html files to every directory where there isn't one. That's just not a road I want to go down.

@knl You should be able to get what you're after by running echo "" > source/blog/categories/index.html. This will add a blank index.html to your categories directory.

@imathis imathis closed this May 20, 2012

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