hugolib: Improve menu generation for section pages with content
authorAbdo Roig-Maranges <abdo.roig@gmail.com>
Sun, 22 Jan 2017 11:28:31 +0000 (12:28 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 20 Feb 2017 21:20:02 +0000 (22:20 +0100)
commit2a6b26a7a520bf88af1413f3f00c7e2782abe8cd
tree784a0571f047cbeec38bb06080ce28d3f66614ab
parentfe9fd0acf4b0fa972d3918d1abcdfcb21de45692
hugolib: Improve menu generation for section pages with content

When using the lazy blogger setting to automatically generate menu
entries from section pages, we now recognize section pages that have
content, and use the weight and linktitle configured in the frontmatter.

This way, we can use the lazy blogger automatic generation, and
influence menu order and translations, directly from the frontmatter.

Updates #2974
hugolib/site.go