statamic / ssg

The official Statamic Static Site Generator
233 stars 24 forks source link

Switch tag has inconsistent order between generated pages #100

Closed ncla closed 2 years ago

ncla commented 2 years ago

How to reproduce

Create multiple pages for generation and put this in layout.antlers.html.

{{ loop times="5" }}
    {{ switch between="right-side|left-side" for="asdasas" }}
{{ /loop }}

Run php please ssg:generate and then view the generated file output, and look through .html files until you see that the first outputted string is left-side instead of right-side.

Note: this ssg:generate is run without --workers flag.

Handy dandy quick reproduce repository: https://github.com/ncla/statamic-switch-ssg-bug-repro

Version stuff

Statamic 3.3.15 Solo Laravel 9.17.0 PHP 8.0.16 statamic/ssg 1.0.1