Inconsistency about which index gets picked between serve and build

Howdy!

I newly converted http://customer.io to middleman from Jekyll and I’m loving it. I got bitten by a small issue that was hard to be aware of until I deployed.

The process I was using was to copy over files from jekyll e.g. /about/index.html to have a reference and then I would make /about/index.slim and update it to make sure it worked in middleman.

Running middleman locally seems to pick the index.slim file and serve that rather than index.html when visiting /about/.

When building, it seems to pick index.html. In a couple of cases where I had forgotten to delete the competing index.html in the same directory as index.slim, everything looked great locally, but deploying would put the old file on the server and things would look wonky.

Not sure if that’s a bug or expected behavior, but it sure threw me for a loop!

Cheers,
Colin