Support for linking to static pages with hash URLs like `#section`. Also
refactor of static code to be more idomatic.