Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class MarkdownPost extends AbstractMarkdownPage |
||
15 | { |
||
16 | use BlogPostSchema; |
||
17 | |||
18 | public static string $sourceDirectory = '_posts'; |
||
19 | public static string $outputDirectory = 'posts'; |
||
20 | public static string $template = 'hyde::layouts/post'; |
||
21 | |||
22 | public function __construct(string $identifier = '', ?FrontMatter $matter = null, ?Markdown $markdown = null) |
||
25 | } |
||
26 | |||
27 | /** @return \Hyde\Framework\Foundation\PageCollection<\Hyde\Framework\Models\Pages\MarkdownPost> */ |
||
28 | public static function getLatestPosts(): PageCollection |
||
33 |