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

When both folder and file are present file is prefered #35

Closed
timneutkens opened this issue Jul 8, 2018 · 1 comment
Closed

When both folder and file are present file is prefered #35

timneutkens opened this issue Jul 8, 2018 · 1 comment

Comments

@timneutkens
Copy link
Member

timneutkens commented Jul 8, 2018

With the following directory structure:

images
 |- image1.png
 |- image2.png
 |- image3.png
images.html

images.html is preferred over images when going to /images.

I'm not sure if this is the standard behavior of other web servers.

Example of how it should probably be handled:

/images => images.html and /images/ => images directory index

@leo
Copy link
Contributor

leo commented Aug 21, 2018

In order for the folder to take precedence, you can set cleanUrls to false.

Since the package is modeled after superstatic, the default behavior, however, is that the file takes precedence and cleanUrls is true.

@leo leo closed this as completed Aug 21, 2018
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

2 participants