correctly calculates asset paths for index pages

resolves https://github.com/assemble/permalinks/issues/20