Altered templates to render math based on most recent version of plugin

Update this template to reflect the latest changes for rendering math using the math_render plugin. I am responsible for this plugin, and I want to use this template as the model for how rendering math in Pelican should work. 

This pull request just updates this template to render math using the most recent version of the plugin (which has changed totally since my pull request).