diff options
Diffstat (limited to 'config.production.php')
| -rw-r--r-- | config.production.php | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/config.production.php b/config.production.php index 144cac5..b296813 100644 --- a/config.production.php +++ b/config.production.php @@ -1,36 +1,6 @@ <?php -use Illuminate\Support\Str; -use Carbon\Carbon; - -$now = Carbon::now(); - return [ - 'baseUrl' => 'https://www.davidtsadler.com', - 'production' => true, - - 'collections' => [ - 'posts' => [ - // Default author, if not provided in a post - 'author' => 'David T. Sadler', - 'sort' => '-date', - 'path' => '/posts', - 'filter' => function ($item) use ($now) { - // Only publish posts that have a date and which is not in the future. - $date = $item->getDate(); - return $date ? $date <= $now : false; - } - ], - 'tags' => [ - 'path' => '/tags/{filename}', - 'posts' => function ($page, $allPosts) { - return $allPosts->filter(function ($post) use ($page) { - $tagSlugs = array_map(function ($tag) { - return Str::slug($tag); - }, $post->tags); - return $post->tags ? in_array($page->getFilename(), $tagSlugs, true) : false; - }); - }, - ], - ], + 'baseUrl' => 'https://www.davidtsadler.com', + 'production' => true, ]; |
