HUGO

[OT]: Toggling on and off different sections

I would like readers of my site be able to toggle on and off different sections such as editorial commentary as well as comments sections.

Ideally saving that setting in a cookie.

In addition, I would like RSS feeds that can include or exclude those sections.

For example, an entry would consist of:

  1. Post
  2. Editorial commentary
  3. Reader comments

The reader would be able to click a toggle and only see the post on each entry, the post and commentary, the post and comments or all three.

I was thinking I would need to make three different types of posts that are linked together somehow but not sure how that would all fit together.

Your question does not relate to Hugo so would be off topic for this forum.

Stack Overflow would be a better place to ask a generic “how do I show/hide things in html?” type question.