<?php snippet('html-head', [
    'pageTitle' => $page->title()->value() . ' — Codex — ' . $site->title()->value(),
]) ?>

<body data-screen-label="Location">

<?php snippet('effects') ?>
<?php snippet('header') ?>

<section class="location-section">
  <div class="location-header">
    <h1 class="reveal"><?= $page->title()->html() ?></h1>
  </div>

  <div class="location-content">
    <div class="location-description">
      <h2>Description</h2>
      <?= $page->description()->kt() ?>
    </div>

    <?php if ($page->history()->isNotEmpty()): ?>
    <div class="location-history">
      <h2>History</h2>
      <?= $page->history()->kt() ?>
    </div>
    <?php endif ?>

    <?php if ($page->significance()->isNotEmpty()): ?>
    <div class="location-significance">
      <h2>Significance</h2>
      <?= $page->significance()->kt() ?>
    </div>
    <?php endif ?>
  </div>
</section>

<?php snippet('menu', ['currentPage' => $page]) ?>
<?php snippet('scripts') ?>

</body>
</html>