Strip the "/index.html" part of the url, when constructing the
permalinks.