I'm a happy Jekyllbootstrap user, however the index.md
template is compiled to index.html
. This is expected, but for me undesired behaviour.
When the navigation links to the homepage it uses index.html
on the anchor. I can get around this using an nginx redirect, but I don't want to have any links on my site that I'm "fixing" using 301 redirects. I'd like it to generate the correct link in the first place.
So to be clear. I don't want jekyll to ever link to index.html
but instead link to /
.
I found the answer to this. I had to set the following at the top of my index.md
file:
---
layout: page
title: Home
group: navigation
permalink: /
---
The key part here being permalink: /