I'm not very familiar with 11ty just yet. I didn't see an obvious way to manage this via collections. Seems we'd need a dynamic hook into how 11ty generates its tag based collections to also filter the date. Maybe another alternative is to capture all the potential tags from the posts collection and overwrite them.
I took a slightly different path that seemed a little more straight forward. I exposed a timestamp as global.now that I used to filter the post list within the view.
Please let me know if there is a more appropriate way to solve this within 11ty best practices.
I'm not very familiar with 11ty just yet. I didn't see an obvious way to manage this via
collections
. Seems we'd need a dynamic hook into how 11ty generates its tag based collections to also filter the date. Maybe another alternative is to capture all the potential tags from the posts collection and overwrite them.I took a slightly different path that seemed a little more straight forward. I exposed a timestamp as
global.now
that I used to filter the post list within the view.Please let me know if there is a more appropriate way to solve this within 11ty best practices.
This resolves #52.