Fix footnotes plugin to render as part of the template