Add publish_date and expiry_date support
This commit is contained in:
parent
a22281c896
commit
4448798bf5
6 changed files with 148 additions and 3 deletions
|
|
@ -120,7 +120,10 @@ function buildNavigation(Context $ctx): array {
|
|||
|
||||
$itemPath = "{$ctx->contentDir}/$item";
|
||||
$metadata = loadMetadata($itemPath);
|
||||
|
||||
|
||||
// Skip invisible content (future publish or expired)
|
||||
if (!isVisible($metadata)) continue;
|
||||
|
||||
// Only include if explicitly marked as menu item
|
||||
// parse_ini_file returns boolean true as 1, false as empty string, and "true"/"false" as strings
|
||||
if (!$metadata || !isset($metadata['menu']) || !$metadata['menu']) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue