diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2020-05-25 23:18:53 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2020-05-25 23:18:53 +0100 |
| commit | 9086b68594fd73a34addc9a41ffb493662faea25 (patch) | |
| tree | dc16bd191a33bf002a5ae1646198352e70328101 | |
| parent | fb37d65e2c58504d089b4de73ca63f127f9d40f1 (diff) | |
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.
| -rw-r--r-- | config.php | 1 | ||||
| -rw-r--r-- | config.production.php | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -13,7 +13,6 @@ return [ 'siteAuthor' => 'David T. Sadler', 'perPage' => 50, - // Collections 'collections' => [ 'posts' => [ // Default author, if not provided in a post 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) { |
