I’m trying to understand how to get the week number of a post. I saw there’s a ISOWeek function, but it returns two values (year and week number). I’ve tried something like:
$year, $week := .Date.ISOWeek
but Hugo’s logs say
can’t call method/function “ISOWeek” with 2 results
so I guess the function is reachable but you can’t set variables this way inside a template.