statamic / ssg

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

Allow wildcards in excludes #25

Closed tao closed 3 years ago

tao commented 4 years ago

I found this useful for testing SSG with lots of content, this allows you to exclude certain routes with wildcards.

In the config you can use wildcards as follows:

    'exclude' => [
        '/about/*',
        '*/articles/*',    // e.g. en/articles/slug or fr/articles/slug
        '/contact',        // non-wildcard page
        '/pod*',           // excludes podcasts and pod-racing
    ],
jasonvarga commented 3 years ago

Sorry for the delay. Thanks for the PR.