reenable sitemap tree
This commit is contained in:
parent
271961bf8c
commit
d72200dc5e
|
@ -80,7 +80,7 @@ module Middleman::Base
|
|||
|
||||
app.set :default_features, [
|
||||
:lorem,
|
||||
#:sitemap_tree
|
||||
:sitemap_tree
|
||||
]
|
||||
|
||||
# Default layout name
|
||||
|
|
|
@ -10,7 +10,7 @@ module Middleman::Features::SitemapTree
|
|||
def sitemap_tree(regex=nil)
|
||||
@sitemap_tree_cache = {}
|
||||
|
||||
key = regex.nil? "all" : regex
|
||||
key = regex.nil? ? "all" : regex
|
||||
|
||||
if !@sitemap_tree_cache.has_key?(key)
|
||||
auto_hash = Hash.new{ |h,k| h[k] = Hash.new &h.default_proc }
|
||||
|
|
Loading…
Reference in a new issue