summaryrefslogtreecommitdiff
path: root/config.production.php
blob: 796ac0f1d2ecf132af61b9f2eaa624de1119ccc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

return [
    '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;
            }
        ],
    ],
];