Closed ncla closed 2 years ago
Create multiple pages for generation and put this in layout.antlers.html.
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.
php please ssg:generate
left-side
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
Statamic 3.3.15 Solo Laravel 9.17.0 PHP 8.0.16 statamic/ssg 1.0.1
How to reproduce
Create multiple pages for generation and put this in
layout.antlers.html
.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 isleft-side
instead ofright-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