add theme1 with subnavigation first setup kind of ugly layout
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
ul
|
||||
- for ancestor in @page.ancestors
|
||||
li.ancestor= link_to ancestor.menu_text.presence || ancestor.title, go_to_page_path(ancestor)
|
||||
/li.current[class=(@sub_pages.present? ? :ancestor : nil)]= link_to @page.menu_text.presence || @page.title, go_to_page_path(@page)
|
||||
- for sub_page in @sub_pages || []
|
||||
li[ class=(sub_page == @page ? [:current, :subpage] : [:subpage])]= link_to sub_page.menu_text.presence || sub_page.title, go_to_page_path(sub_page)
|
||||
Reference in New Issue
Block a user