Add the ability to create blog pages and blog-posts.
This commit is contained in:
17
templates/blog-post.php
Normal file
17
templates/blog-post.php
Normal 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") ?>
|
||||
Reference in New Issue
Block a user