Commit d6d8f485 authored by Chris Snijder's avatar Chris Snijder 🏅
Browse files

Less verbose logging.

parent 0db0c8e9
......@@ -208,15 +208,15 @@ class RecursiveNav < ::Middleman::Extension
tree = _recurse_children node_index, start
def traverse_tree(tree, level)
for node in tree
puts "#{'##' * level} #{node.page_id}"
if node.children
traverse_tree node.children, level+1
end
end
end
traverse_tree(tree, 1)
#def traverse_tree(tree, level)
# for node in tree
# puts "#{'##' * level} #{node.page_id}"
# if node.children
# traverse_tree node.children, level+1
# end
# end
#end
#traverse_tree(tree, 1)
tree
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment