'https://www.davidtsadler.com', 'production' => true, 'collections' => [ 'posts' => [ // Default author, if not provided in a post 'author' => 'David T. Sadler', '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; } ], ], ];