Generate sidenav at compile rather than with js

Use Pandoc AST transformations to create sidenav ul on pages with the
sidenav metadata key, instead of doing it in browser with js, this is
much more robust and good looking