Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
return value_or_default("wiki.footer", "footer.html")
end
+ # Automatically add a summary.
+ #
+ # * key: `wiki.auto_summary`
+ # * default: `true`
+ var auto_summary: Bool is lazy do
+ return value_or_default("wiki.auto_summary", "true") == "true"
+ end
+
# Sidebar position.
#
# Position of the sidebar between `left`, `right` and `none`. Any other value
# Sidebar for this page.
var tpl_sidebar: TplSidebar is lazy do
var res = new TplSidebar
- res.blocks.add tpl_summary
+ if wiki.config.auto_summary then
+ res.blocks.add tpl_summary
+ end
res.blocks.add_all sidebar.blocks
return res
end