Skip to content

getLatestPosts()#

No description provided.

MarkdownPost::getLatestPosts(): \Hyde\Foundation\Kernel\PageCollection<\Hyde\Pages\MarkdownPost>

isDraft()#

Determine if the post is a draft, meaning it has draft: true in its front matter.

Drafts are excluded from publication builds while the property is true, but remain available in realtime compiler previews. Unlike a scheduled post, a draft never becomes publishable on its own, as it stays excluded pending an explicit change to the draft property rather than a date.

Posts are published by default, so false is equivalent to omitting the property.

$page->isDraft(): bool

isScheduled()#

Determine if the post is scheduled, meaning its date is set in the future.

Scheduled posts are excluded from publication builds until their date has passed, but remain available in realtime compiler previews.

Since Hyde is a static site generator, a scheduled post does not publish itself when its date passes. It is included in the first site build that is run after that point, so recurring builds are needed for automatic publication, for example through a scheduled GitHub Actions workflow.

$page->isScheduled(): bool

toArray()#

No description provided.

$page->toArray(): array