How to create hidden page but include in sitemap #3118
Answered
by
Tseing
paulocoutinhox
asked this question in
Q&A
-
Hi, When i create a page, an automatic link is created on menu for that page. I remove it from menu using status=hidden. But when i set status=hidden the page is removed from sitemap too. How can i prevent it to be removed from sitemap? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
Tseing
Apr 13, 2023
Replies: 1 comment 1 reply
-
Hi @paulocoutinhox, It seems that you want to enumerate menu items by yourself or do not want to display pages on menu. I suggest to modify setting in # Do not display pages on menu but in sitemap
DISPLAY_PAGES_ON_MENU = False
# Do not display categories page on menu but in sitemap
DISPLAY_CATEGORIES_ON_MENU = False
# Pages, articles or whatever you want to display on menu
MENUITEMS = [("Home", SITEURL + "/index.html"),
("Categorias", SITEURL + "/categories.html"),
("Tools", SITEURL + "/pages/tools.html"),
("Search", "https://bing.com"),
("About", SITEURL + "/pages/about.html")] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
paulocoutinhox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @paulocoutinhox,
It seems that you want to enumerate menu items by yourself or do not want to display pages on menu. I suggest to modify setting in
pelicanconf.py
.