statamic / ssg

The official Statamic Static Site Generator
230 stars 23 forks source link

Ability to add urls #49

Closed jasonvarga closed 3 years ago

jasonvarga commented 3 years ago

This PR lets you add urls to the config dynamically.

SSG::addUrls(function () {
    $items = Http::get('/external-api')->json();
    return collect($items)->map->url;
});

Closes #42 Closes #19

This PR also adds an SSG facade, which closes #21