feat(permalink): add trailing_index option to remove index.html from url
#3691

curbengh wants to merge curbengh:canonical into hexojs:master

We do not currently have an analysis of these two commits