21 lines
606 B
PHP
21 lines
606 B
PHP
<?php
|
|
/*
|
|
Snippets are a great way to store code snippets for reuse
|
|
or to keep your templates clean.
|
|
|
|
This intro snippet is reused in multiple templates.
|
|
While it does not contain much code, it helps to keep your
|
|
code DRY and thus facilitate maintenance when you have
|
|
to make changes.
|
|
|
|
More about snippets:
|
|
https://getkirby.com/docs/guide/templates/snippets
|
|
*/
|
|
?>
|
|
<header class="h1">
|
|
<h1><?= $page->headline()->or($page->title())->html() ?></h1>
|
|
<?php if ($page->subheadline()->isNotEmpty()): ?>
|
|
<p class="color-grey"><?= $page->subheadline()->html() ?></p>
|
|
<?php endif ?>
|
|
</header>
|