In my toml file I have:
[menus]
[[menus.main]]
name = "About Me"
pageRef = "/pages/about-me"
[[menus.main]]
name = "Current Desktop Screenshots"
pageRef = "/pages/desktop_screenshots"
The first entry makes a menu that goes to that page. The second entry makes an entry that just goes back to the homepage. Why?
I assume your content structure is something like this:
content/
├── pages/
│ ├── about-me.md
│ └── desktop_screenshots.md
└── _index.md
If true, have you checked the front matter of desktop_screenshots.md to make sure that:
- The
draft
field is not set to true?
- The
date
or publishDate
field are not in the future?
The md file is current-desktop-screenshots, but the defined URL within the front matter id desktop_screenshots.
I see that I need to refer to the .md name!
Thanks!
Out of curiosity, why do you need the url
field in front matter?
system
Closed
5
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.