hugo/hugolib
bep d4acacd4f5 Section menu for the lazy blogger
The current menu system works great, but is too much work if all you want is a simple menu with the sections as menu items, and having these menu items connected to the pages in a way that enables setting the correct menu item as active for both the section lists and the pages itself.

This commit adds a new option `SectionPagesMenu' which, if set, will create a new menu with that name with all the sections as menu items. The pages in the sections will behave as "shadow members" of these section items as `blogpage.HasMenuCurrent "sectionmenu" $sectionmenuitem` will return true.

If a menu item with the same `identifier` is defined in site config, *that* item will take precedence.
2015-05-08 21:28:19 -04:00
..
author.go
benchmark_test.go
datafiles_test.go
handler_base.go
handler_file.go
handler_meta.go
handler_page.go Add shortcode support for HTML files 2015-05-06 19:11:42 +02:00
hugo.go
media.go
menu.go
menu_test.go Section menu for the lazy blogger 2015-05-08 21:28:19 -04:00
node.go
page.go Section menu for the lazy blogger 2015-05-08 21:28:19 -04:00
page_permalink_test.go
page_taxonomy_test.go
page_test.go
page_time_integration_test.go
pageGroup.go
pageGroup_test.go
pageSort.go
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go
pagination_test.go Fix broken Travis tests 2015-04-22 18:59:42 +02:00
path_separators_test.go
path_separators_windows_test.go
permalinks.go
permalinks_test.go
planner.go
redis.cn.md
rss_test.go Make RSS output test more realistic 2015-05-08 20:33:37 +02:00
scratch.go
scratch_test.go Fix broken Travis tests 2015-04-22 18:59:42 +02:00
shortcode.go shortcodeparser: fix panic on slash following opening shortcode comment 2015-04-30 15:59:07 +02:00
shortcode_test.go shortcodeparser: fix panic on slash following opening shortcode comment 2015-04-30 15:59:07 +02:00
shortcodeparser.go shortcodeparser: fix panic on slash following opening shortcode comment 2015-04-30 15:59:07 +02:00
shortcodeparser_test.go
site.go Section menu for the lazy blogger 2015-05-08 21:28:19 -04:00
site_show_plan_test.go
site_test.go
site_url_test.go Do not add trailing slash to baseURL 2015-05-05 16:02:44 +02:00
siteinfo_test.go
sitemap.go
sitemap_test.go
summary.go
taxonomy.go
taxonomy_test.go