enten / hyde-y

Enhanced port of the Jekyll "Hyde" theme to Hugo
MIT License
88 stars 62 forks source link

How to have a "page" that is accessible only via its URL? #16

Closed tensojka closed 8 years ago

tensojka commented 8 years ago

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.

enten commented 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).

tensojka commented 8 years ago

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.

enten commented 8 years ago

The homepage module (partials/homepage.html) list all page with type "post".

To do what you want:

With this configuration, ONLY posts into the "homepages" section will be shown on the homepage.

tensojka commented 8 years ago

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.

enten commented 8 years ago

Thanks for this advice.