diff --git a/lib/gollum/templates/layout.mustache b/lib/gollum/templates/layout.mustache
index d92faeb2..6e941f61 100644
--- a/lib/gollum/templates/layout.mustache
+++ b/lib/gollum/templates/layout.mustache
@@ -49,7 +49,7 @@
};
{{#mathjax_config}}
-
+
{{/mathjax_config}}
{{/mathjax}}
diff --git a/lib/gollum/views/layout.rb b/lib/gollum/views/layout.rb
index bfe3decc..c70d6b40 100644
--- a/lib/gollum/views/layout.rb
+++ b/lib/gollum/views/layout.rb
@@ -42,7 +42,7 @@ module Precious
clean_url(custom_path, "custom.js")
end
- def mathjax_config
+ def mathjax_config_path
page_route(@mathjax_config)
end