diff --git a/lib/gollum/templates/layout.mustache b/lib/gollum/templates/layout.mustache
index 6ba4d92d..6290eeb1 100644
--- a/lib/gollum/templates/layout.mustache
+++ b/lib/gollum/templates/layout.mustache
@@ -8,7 +8,7 @@
{{#sprockets_stylesheet_tag}}app{{/sprockets_stylesheet_tag}}
{{#sprockets_stylesheet_tag}}print print{{/sprockets_stylesheet_tag}}
- {{#css}}{{/css}}
+ {{#css}}{{/css}}
{{#noindex}}{{/noindex}}
@@ -49,11 +49,11 @@
};
{{#mathjax_config}}
-
+
{{/mathjax_config}}
-
+
{{/mathjax}}
- {{#js}}{{/js}}
+ {{#js}}{{/js}}
{{title}}
diff --git a/lib/gollum/views/layout.rb b/lib/gollum/views/layout.rb
index 718c9172..22855a43 100644
--- a/lib/gollum/views/layout.rb
+++ b/lib/gollum/views/layout.rb
@@ -26,12 +26,24 @@ module Precious
!@path.nil?
end
- def base_url
+ def custom_path
@base_url
end
- def custom_path
- "#{@base_url}"
+ def custom_css
+ clean_url(custom_path, "custom.css")
+ end
+
+ def custom_js
+ clean_url(custom_path, "custom.js")
+ end
+
+ def mathjax_config
+ page_route(@mathjax_config)
+ end
+
+ def mathjax_js
+ page_route("gollum/assets/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML")
end
def css # custom css