I need to create permalinks for my pages in this format:
In my config I created this permalink setup:
[permalinks] note = "/:year/:yearday/:filename"
For posts which are made before the 100th day of the year Hugo creates 1 or 2 digit yeardays as per documentation. To not break a bunch of old links I need padding for those links that are created before the 100th day of the year so that a post created on January 10th would result in this link:
Is there any facility I can leverage to pad yeardays with zeros when < 100? I do not know anything about Go but I was thinking that maybe the last phrase in that section could help?
Additionally, a Go time format string prefixed with
:may be used.
Searching for “padding yearday” and “format padding date” etc. did not yield any results.