From 9086b68594fd73a34addc9a41ffb493662faea25 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Mon, 25 May 2020 23:18:53 +0100 Subject: Posts should not have a default date in production If todays date is provided as a default date for posts that do not have one then that post will be included due to the filter that is ran. --- config.production.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config.production.php') diff --git a/config.production.php b/config.production.php index 12b8038..30a1b7b 100644 --- a/config.production.php +++ b/config.production.php @@ -7,12 +7,11 @@ $now = Carbon::now(); return [ 'baseUrl' => 'https://www.davidtsadler.com', 'production' => true, - // Collections + 'collections' => [ '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) { -- cgit v1.2.3-13-gbd6f