Is it somehow possible in Golang to formulate something like {{ today + 1 year }}?
I know that the cache control header perfectly does what I want to achieve, but there are too many clients, setups and use cases, that ignore that header and look for the Expires header.
I am trying to wrap my head around Hugo modules, at least once a month, last time yesterday and somehow it does not compute, yet… Those modules just don’t show up in my repos. Won’t take much longer to get it running though. I’ll check out hugo-mod-jslibs.
offtopic: hi @bep, can you point me to a doc that describes how to “version” modules in a monorepo for hugo? I did create github packages until I realized that that makes no sense for Go or Hugo at all. Is it just a github release foldername/versionnumber or is there something deeper behind it?
Nothing deeper that I know about; it’s that and you also ned to add the folder to the path when init/importing the module. I think it works great, and removes some administration for modules that are somewhat connected (esp. considering you can do hugo mod get -u ./... from the root to update all upstream deps recursively) …