I want to order a list by multiple params.
Something like {{ range $.Site.RegularPages.ByParam “startdate” “otherparam” }}
Of coarse, the above throws me an error:
: wrong number of args for ByParam: want 1 got 2
Is there a way to chain sorts?
I want to order a list by multiple params.
Something like {{ range $.Site.RegularPages.ByParam “startdate” “otherparam” }}
Of coarse, the above throws me an error:
: wrong number of args for ByParam: want 1 got 2
Is there a way to chain sorts?
You could try something like
{{ range ($.Site.RegularPages.ByParam "firstparam").ByParam "secondparam" }}
Hero!