This PR adds two different boolean fields on Page to help control its visibility in the website. Page#hide_navigation will just remove a page from the navigation. This will allow a page like a Splash page or some less significant content page to be published but not take up space in the navigation. On the other hand there is also now a Page#hide_page flag that will essentially unpublish a page such that it cannot be visible to the public.
Changes
adds Page#hide_navigation and #hide_page boolean
adds hide_page: false condition to published scope
adds WebsiteDecorator#navigation_page_names_and_slugs for more
efficient generation of navigation links with just names and slugs
Reason for Change
This PR adds two different boolean fields on Page to help control its visibility in the website.
Page#hide_navigation
will just remove a page from the navigation. This will allow a page like a Splash page or some less significant content page to be published but not take up space in the navigation. On the other hand there is also now aPage#hide_page
flag that will essentially unpublish a page such that it cannot be visible to the public.Changes
Unpublish a page/hide link