Closed w0whitaker closed 1 year ago
You’re absolutely right.
I believe this is a duplicate of https://github.com/11ty/eleventy/issues/2350 and as we’re very close to 2.0 it is unlikely to be backported unless I hear a few more noisemakers on it. I’d recommend leaving a comment on #2350 so we can organize the 1.x backport upvotes
As written, the example for skipping templates doesn't work in v1.0.2.
Given the following:
Running
npm start
results in:It does, however, work if using v2.0.0-canary.23:
It will also work in v1.0.2 when the
if
statement is moved into thereturn
block:I'm not sure what changed between the two versions that would cause this, but perhaps the docs should mention the change in behavior. Happy to work on this if that would be helpful.