| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class MarkdownPost extends BaseMarkdownPage implements BlogPostSchema |
||
| 22 | { |
||
| 23 | public static string $sourceDirectory = '_posts'; |
||
| 24 | public static string $outputDirectory = 'posts'; |
||
| 25 | public static string $template = 'hyde::layouts/post'; |
||
| 26 | |||
| 27 | public string $title; |
||
| 28 | public ?string $description = null; |
||
| 29 | public ?string $category = null; |
||
| 30 | public ?DateString $date = null; |
||
| 31 | public ?Author $author = null; |
||
| 32 | public ?Image $image = null; |
||
| 33 | |||
| 34 | /** @return \Hyde\Framework\Foundation\PageCollection<\Hyde\Framework\Models\Pages\MarkdownPost> */ |
||
| 35 | public static function getLatestPosts(): PageCollection |
||
| 40 |