Closed tensojka closed 8 years ago
The lefthand menu (partials/bloc/header/nav.html) is composed by two modules :
Can you try to create content/links.md and test http://baseurl/links url? I think that your page will be shown but won't be listed in the lefthand menu (because no link entry was added into data/Menu).
I'm sorry for not expressing exactly, but I wanted to not have the page listed in the list of all articles. By list of all articles I mean the list you get when you visit https://baseurl/ I will add it to the lefthand menu manually.
The homepage module (partials/homepage.html) list all page with type "post".
To do what you want:
{{ $paginator := .Paginate (where .Data.Pages "Section" "homespages") }}
With this configuration, ONLY posts into the "homepages" section will be shown on the homepage.
Great, all I needed was to change the type in my markdown/toml files from post to something else. Their placement in folders in the content directory doesn't matter.
Thanks for this advice.
My client requires me to have an interresting links page, but they don't want to list in on the front page, only in the lefthand menu.