<section id="markdown-post-methods">

<!-- Start generated docs for Hyde\Pages\MarkdownPost -->
<!-- Generated by HydePHP DocGen script at 2026-07-31 02:08:02 in 0.62ms -->

#### `getLatestPosts()`

No description provided.

```php
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.

```php
$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.

```php
$page->isScheduled(): bool
```

#### `toArray()`

No description provided.

```php
$page->toArray(): array
```

<!-- End generated docs for Hyde\Pages\MarkdownPost -->

</section>
