Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Layout adjustment with regard to hidden page content #165

Closed
Lukas2112 opened this issue Jul 24, 2022 · 2 comments
Closed

Layout adjustment with regard to hidden page content #165

Lukas2112 opened this issue Jul 24, 2022 · 2 comments

Comments

@Lukas2112
Copy link

A. Problem / Goal

Currently it is not implemented in the theme that it can be adjusted via the metadata whether a page should be displayed on the main page or not. As far as I could see, there is only the possibility to put the .md file into the "Content" root directory, then it would be invisible.

This may work, but it is more than unattractive and not practicable in many use cases.

The goal would therefore be to change the theme in places where this is necessary so that a page is made invisible on the main page with the parameter "unlisted: true" or "unlisted: false" and can only be accessed via the link.

B. Solution

There would be the way described here: https://bphogan.com/2020/08/11/2020-08-11-creating-unlisted-content-in-hugo/

C. Alternatives

None

D. Responsibilities

I would see the responsibility in the owners of the repository and, if necessary, additional project participants.

E. Other

There also seems to be an issue on this topic in the official Hugo Repo: gohugoio/hugo#6412

@csett86
Copy link

csett86 commented Aug 28, 2022

Should already work, see the README:

Add hidden: true to post front matter. Post also is not available in RSS feed.

@Mitrichius
Copy link
Owner

Closing this issue due to inactivity.
If the issue is still here, feel free to reopen it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants