I’m not sure if I’ve missed something or not, so I apologize if I have.
I’m working on a Calendar website using Hugo. So all of my articles are “events” and I want to have there be one common calendar and then sub calendars by region. I have a work for this where my event front matter looks like this:
--- date: 2018-02-22 numdays: 4 publishDate: 2017-12-16T12:19:21-05:00 expiryDate: 2018-02-17T12:00:00-00:00 event: [ "2018","2018-02","2018-02-22","2018-02-23","2018-02-24","2018-02-25", "newengland2018","newengland2018-02","newengland2018-02-22","newengland2018-02-23","newengland2018-02-24","newengland2018-02-25" ] region: "newengland" ---
This allows me to show this event occurring over 4 days in February and to have it appear on the main calendar and the “newengland” calendar both … the “event” taxonomy is one part of the magic here.
What I would like to do is to generate the Event Taxonomy values with a function. Compute based on a loop from “date” to “date + numdays” using a sequence and then permute it by also pre-pending it with the region taxonomy value.
This kind of dynamic Taxonomy generation can be used for other purposes as well. I am a relatively new GoLang programmer but I have a lot of experience with other languages as well as Search Engine experience with faceted navigation and this feature would, I think, be of much benefit to Hugo. If it doesn’t exist by some other means I would like to try to add it to Hugo.
Thanks for your help.
Joe H.