In a remote data file there is a key with the value of 24.
And I need to generate a series of query strings from 2 to 24.
e.g. ?page=2
, ?page=3
,… ?page=24
How can I go about it in Hugo?
In a remote data file there is a key with the value of 24.
And I need to generate a series of query strings from 2 to 24.
e.g. ?page=2
, ?page=3
,… ?page=24
How can I go about it in Hugo?
{{ range seq 2 24 }}
{{ printf "?page=%d" . }}<br>
{{ end }}
Thank you!
Or
{{ range seq 2 24 }}
{{ querify "page" . }}<br>
{{ end }}
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.