I’m attempting to generate an adaptive index of monthly calendars from predefined pages in a series. The link titles are determined at build time based on an offset value in the front matter of each page:
Thanks for your suggestion. Unfortunately it did not resolve the issue I’m experiencing.
The error message did change a bit:
ERROR: 2016/01/15 15:44:57 general.go:203: Error while rendering section calendar:
template: section/calendar.html:18:55: executing "section/calendar.html" at <0>:
wrong type for value; expected int; got int64
The error is now occurring at the second argument to the add function (regardless of the order of the arguments.)
I tried your suggestion using go 1.3.3 and hugo 0.16-dev (from the beginning of December 2015). Then I updated go (to 1.5.1), rebuilt hugo (using go get -u -v …), and tried again. Both versions are reporting this error.