From 8145093c4b26b64ef146e891eff77bb77dad7a7a Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sun, 10 May 2020 21:32:49 +0100 Subject: Ensure posts are only filtered in production --- config.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'config.php') diff --git a/config.php b/config.php index 289ee43..63f47f9 100644 --- a/config.php +++ b/config.php @@ -18,13 +18,9 @@ return [ 'posts' => [ // Default author, if not provided in a post 'author' => 'David T. Sadler', + 'date' => $now->timestamp, 'sort' => '-date', 'path' => '/posts/{date|Y-m-d}/{filename}', - '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}', -- cgit v1.2.3-13-gbd6f