Sitemap generation is now independent from the navbar generation, and
it will be added to the navbar only once the navbar has been created.
Also, better style for code.
Table of content was made unavailable regardless of whether one was
provided by the page or not. This commit fixes this issue by making an
unavailable TOC only if one is not provided by the web page, otherwise
the TOC will be available.