themefisher / airspace-hugo

Airspace Hugo theme for multipurpose use, like Portfolio, Blog, Business.

Home Page:https://gethugothemes.com/products/airspace/?utm_source=airspace_github&utm_medium=referral&utm_campaign=github_theme_about

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disabling exisitng pages

vegetarianinvestor opened this issue · comments

How can I disable an existing page from the website? I tried commenting the menu section as below and that removes the page link from the header as expected but the page can still be accessed through the url like http://localhost:38605/faq/.

Can there be a way to disable the page so that I can enable it later when I plan to re-add it? I want to disable it temporarily for few months.

#menu:
#  main:
#    name: "FAQ"
#    weight: 4

Thanks.

Either set draft = true in the YAML header of the corresponding content file or don't include it at all in the sources.

And please stop opening issues in this repository for general Hugo questions. Instead I'd recommend to read the Hugo documentation and, if necessary, ask questions like the above in the Hugo Discourse forum. Thanks.

Ok. Thanks.