blob: 07047e3246c16a67ea4cfef9f2abc3d6daddd200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
use Carbon\Carbon;
$now = Carbon::now();
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;
}
],
],
];
|