View source: Template

The HTML for this page is generated by the template home.php.

All templates can be found in the /site/templates folder.

To learn more about Kirby’s templates, please check out our docs:

Back to the page

<?php snippet('home/header') ?>

<header class="h1">
  <h1><?= $page->heading()->html() ?></h1>

<!--<section class="section">
  <div class="grid">
    <div class="column panel box" style="--columns: 6">
      <div class="text margin-l">
        <h2><?= $page->panelHeading()->html() ?></h2>
        <?= $page->panelText()->kt() ?>
      <a class="cta" href="<?= url('panel') ?>">Open the Panel</a>
    <div class="column text" style="--columns: 6">
      <h2><?= $page->aboutHeading()->html() ?></h2>
      <?= $page->aboutText()->kt() ?>

<section class="section">
<!--  <h2 class="h2">Examples</h2>-->
  <ul class="grid examples">
    <?php foreach ($site->children()->listed() as $example): ?>
    <li class="column" style="--columns: 4">
      <a href="<?= $example->url() ?>">
          <span class="img" style="--w: 4; --h:3">
            <?php if ($cover = $example->cover()): ?>
            <?= $cover->crop(400, 300) ?>
            <?php endif ?>
          <figcaption class="img-caption">
            <p><strong><?= $example->title()->html() ?></strong></p>
            <p><small><?= $example->description()->html() ?></small></p>
    <?php endforeach ?>

<?php snippet('footer') ?>