Design adjustments, new content and more
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Snippets are a great way to store code snippets for reuse or to keep your templates clean.
|
||||
* in loops or simply 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
|
||||
*/
|
||||
?>
|
||||
/*
|
||||
Snippets are a great way to store code snippets for reuse
|
||||
or to keep your templates clean.
|
||||
|
||||
<header class="intro">
|
||||
<h1><?= $page->title() ?></h1>
|
||||
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>
|
||||
|
Reference in New Issue
Block a user