Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

how to disable and enable pages and/or content from public view? #51

Closed
devopstoday11 opened this issue Mar 6, 2023 · 2 comments
Closed
Assignees

Comments

@devopstoday11
Copy link
Contributor

Hi @tfsojon
How could I enable/disable any page I want from public view? And also, how can I hide/show in the main menu bar in the header area?

I want to be able to hide certain pages or certain sections in a particular page that are not ready. How can I do that?

@devopstoday11 devopstoday11 changed the title how to disable and enable pages from public view? how to disable and enable pages and/or content from public view? Mar 6, 2023
@tfsojon
Copy link
Collaborator

tfsojon commented Mar 7, 2023

  • To hide a page set draft: true in frontMatter
    image

  • most of the section are has option to disable

  • and for menu comment out the menu item in menus.[].toml file like this
    image

@devopstoday11
Copy link
Contributor Author

Thank you. Found it. It's in the config/_default/menus.en.toml file

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants