gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.79k stars 7.46k forks source link

Slice of slices changed behaviour #11553

Open raoulb opened 11 months ago

raoulb commented 11 months ago

I have an old partial that splits a slice of pages into a slice of slices of pages (in my case pairs).

This worked well with Hugo up to v0.113.0 but broke with v0.114 up to the most recent 0.119.0. For me this breaks a production site.

A minimal example can be found here:

This issue might be related (or equivalent?) to #11131.

BTW: Such a function to split slices into even pieces appears to be a good candidate for a Hugo builtin functionality anyway.

raoulb commented 7 months ago

Any updates on this?

cmahnke commented 7 months ago

@jmooring Looks like a duplicate to #11131 to me.