chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
582 stars 267 forks source link

Archives and how do they get added? #268

Open onweru opened 2 years ago

onweru commented 2 years ago

Discussed in https://github.com/chipzoller/hugo-clarity/discussions/188

Originally posted by **gary094** June 16, 2021 Hello, thanks for your work on this beautiful theme! I'm new to hugo but at this point I understand the basic structure. However I cannot figure out how posts get added to the Archive. By default post "Rich Content" is visible in the Archive but it seems it is not mentioned anywhere in the rich-content.md I would assume there would be some kind of switch like "archive: true" (similar what draft: true does) but it is not. So I'm wondering how is it decided whether or not a post is marked as "archived"? Or maybe is it intended to create a directory "archives" inside content and move any posts in there that I consider archived? Also very strange to me is that the Archive in the header links to a directory "post/rich-content/" however there is no such directory in content directory. How is this generated then? Thank you!