summaryrefslogtreecommitdiff
path: root/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'config.php')
-rw-r--r--config.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/config.php b/config.php
index 289ee43..63f47f9 100644
--- a/config.php
+++ b/config.php
@@ -18,13 +18,9 @@ return [
'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();
- return $date ? $date <= $now : false;
- }
],
'tags' => [
'path' => '/tags/{filename}',