Tweaks to Sphinx template to match PR #4 against the theme

See also: https://github.com/lmorchard/mozilla-mdn-sphinx-theme/pull/4

This PR makes the corresponding tweaks to the original template generator.