Create the ability to create blog pages and blog-posts.

This commit is contained in:
2026-04-20 09:31:28 +10:00
parent 87999e63f8
commit c34cd57610
6 changed files with 131 additions and 0 deletions

17
templates/blog-post.php Normal file
View File

@@ -0,0 +1,17 @@
<?= snippet("header") ?>
<?= snippet("page/title", ["showDate" => true]) ?>
<?= $page->text()->kirbytext() ?>
<hr class="mb-3">
<?php if (($user = $kirby->user()) and $user->role()->isAdmin()) : ?>
<div class="clearfix mb-3">
<div class="float-end">
<a href="<?= $page->panel()->url() ?>" target="_blank"><?= kirbytag("fa", "edit") ?></a>
</div>
</div>
<?php endif ?>
<?= snippet("footer") ?>