Fix broken links and make the site relocatable
This MR stops all the links in articles being broken, and also switches to a more robust way of defining intra-site links. Finally, it makes the navbar links work when the content is arbitrarily relocated.