This commit is contained in:
bootstraponline
2012-11-11 14:40:47 -07:00
parent f699b82a9f
commit 470a7b8f52
4 changed files with 12 additions and 1 deletions
+2
View File
@@ -239,6 +239,7 @@ module Precious
@toc_content = wiki.universal_toc ? @page.toc_data : nil
@mathjax = wiki.mathjax
@css = wiki.css
@h1_title = wiki.h1_title
@editable = false
mustache :page
end
@@ -362,6 +363,7 @@ module Precious
@toc_content = wiki.universal_toc ? @page.toc_data : nil
@mathjax = wiki.mathjax
@css = wiki.css
@h1_title = wiki.h1_title
mustache :page
elsif file = wiki.file(fullpath)
content_type file.mime_type
+2 -1
View File
@@ -8,7 +8,8 @@ module Precious
DEFAULT_AUTHOR = 'you'
def title
@page.url_path_title
h1 = @h1_title ? page_header_from_content(@content) : false
h1 || @page.url_path_title
end
def page_header