Add scribbles
All checks were successful
Deploy / deploy (push) Successful in 3s

This commit is contained in:
Marcel Kapfer 2025-01-31 22:04:40 +01:00
parent b36abcd3bf
commit 0d40b85f76
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
13 changed files with 232 additions and 58 deletions

View file

@ -0,0 +1,21 @@
<?php
/**
* @var ScribblePage $scribble
* @var bool $singlePage
*/
$headlineLevel = $singlePage ? 1 : 2;
$title = $scribble->date()->toDate('j. F Y @ h:i');
?>
<article class="scribble">
<h<?= $headlineLevel ?>>
<?php if (!$singlePage): ?>
<a href="<?= $scribble->url() ?>"><?= $title ?></a>
<?php else: ?>
<?= $title ?>
<?php endif ?>
</h<?= $headlineLevel ?>>
<?= $scribble->text()->kirbytext() ?>
</article>