summaryrefslogtreecommitdiff
path: root/config.production.php
diff options
context:
space:
mode:
Diffstat (limited to 'config.production.php')
-rw-r--r--config.production.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/config.production.php b/config.production.php
index 85850d9..796ac0f 100644
--- a/config.production.php
+++ b/config.production.php
@@ -1,6 +1,16 @@
<?php
return [
- 'baseUrl' => 'https://davidtsadler.com',
- 'production' => true,
+ 'baseUrl' => 'https://davidtsadler.com',
+ 'production' => true,
+ // Collections
+ 'collections' => [
+ 'posts' => [
+ '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;
+ }
+ ],
+ ],
];