Mitrichius / hugo-theme-anubis

Anubis is a simple minimalist theme for Hugo blog engine
https://hugo-theme-anubis.netlify.app/
MIT License
397 stars 152 forks source link

Layout adjustment with regard to hidden page content #165

Closed linux-lukas closed 1 year ago

linux-lukas commented 2 years ago

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: https://github.com/gohugoio/hugo/issues/6412

csett86 commented 2 years ago

Should already work, see the README:

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

Mitrichius commented 1 year ago

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