Skip to content

How to create hidden page but include in sitemap #3118

Answered by Tseing
paulocoutinhox asked this question in Q&A
Discussion options

You must be logged in to vote

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.

# 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")]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paulocoutinhox
Comment options

Answer selected by paulocoutinhox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants