This commit is contained in:
parent
b36abcd3bf
commit
0d40b85f76
13 changed files with 232 additions and 58 deletions
21
site/snippets/scribble.php
Normal file
21
site/snippets/scribble.php
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue