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)
