more fixes to make gh-pages behave properly with links