Closed nhinds closed 8 years ago
Hmm, does this really work? Wouldn't the content that has a filename property without an extension just be 404 in any case?
normalizeUri
turns /foo
into /foo/index.html
, since #252, which fixed the 404 you mention.
I have tested this change on my site which has e.g. about.md
with a filename of about
. Without this change wintersmith build
generates the page correctly into a file called about
, and it works when served from S3 with content type set to text/html
, but wintersmith preview
forces browsers to download the page rather than displaying it.
Ok, I don't think having this could hurt. I'll publish it with the next release. Thanks!
Enables serving extensionless HTML files, since the normalized URI is
/path/index.html
Without this, extensionless files are served as
application/octet-stream
(the default content type from the MIME module)