Skip to content
Snippets Groups Projects
Commit 4070ddab authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix toc

parent af3f09ae
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ module WithBlocks
# Basic rule is: TOC if 2 titles or more
def show_toc?
blocks.collect(&:title)
blocks.published
.collect(&:title)
.reject(&:blank?)
.many?
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment