summaryrefslogtreecommitdiff
path: root/config.production.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-05-24 00:30:19 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-05-24 00:30:19 +0100
commit9a190b18a410a9ddd8ead7666e19ece43157d4e1 (patch)
tree8658540c0a6c928a7135663efdce809adb3d74fa /config.production.php
parentfb640735404421b57aae9b6e369cd2f5b9970bfe (diff)
Add missing production configuration
Looks like production settings are not merged recursivley for nested configuration.
Diffstat (limited to 'config.production.php')
-rw-r--r--config.production.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.production.php b/config.production.php
index 07047e3..3573916 100644
--- a/config.production.php
+++ b/config.production.php
@@ -10,6 +10,11 @@ return [
// 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) {
// Only publish posts that have a date and which is not in the future.
$date = $item->getDate();