onweru / hugo-swift-theme

A simple open source theme for publishing with hugo
https://neuralvibes.com/
Other
120 stars 64 forks source link

Hidden page option #57

Closed kvandenbrande closed 4 years ago

kvandenbrande commented 4 years ago

I would like to migrate from an other theme, where I use in front matter the hidden function to prevent it from showing up between the other posts, just want it to show in my menu. How can I hide it with this theme? +++ title = "Contact" hidden = "true" +++

onweru commented 4 years ago

@kvandenbrande, I didn’t quite understand your question. Could you provide more information or clarify further?

kvandenbrande commented 4 years ago

In the \content\post\ folder I have all my blog posts -> perfect In the \content\ I got several pages (like contact page) which are accessible from my menu but the issue is that they also show up between my blog posts. My question is now how can I prevent that?

onweru commented 4 years ago

Aha, I will add a filter for that in the coming days. Thanks for pointing that out.

onweru commented 4 years ago

@kvandenbrande, edit this line in your config file accordingly.

To elaborate, if your blog resides inside a folder called posts, you would edit the line I referenced above to look like:

...
blogDir = "posts"
...

closing this within the next couple of days.

GaProgMan commented 4 years ago

I'm still seeing this issue, but have a fix. PR incoming.