summaryrefslogtreecommitdiff
path: root/config.production.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-05-25 23:18:53 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-05-25 23:18:53 +0100
commit9086b68594fd73a34addc9a41ffb493662faea25 (patch)
treedc16bd191a33bf002a5ae1646198352e70328101 /config.production.php
parentfb37d65e2c58504d089b4de73ca63f127f9d40f1 (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.
Diffstat (limited to 'config.production.php')
-rw-r--r--config.production.php3
1 files changed, 1 insertions, 2 deletions
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) {