---
layout: base
---

<main class="page--entry box pad">
  <header>
    <h1>{{ title }}</h1>
    <p>
      posted {{ page.date | formatDate('yyyy-MM-dd') }}
      {% if author %}
        by {{ author }}
      {% elif meta.author %}
        by {{ meta.author }}
      {% endif %}
      {% if categories %}
        <em>in</em>
        {% for cat in categories %}
          <a href="/journal/category/{{ cat }}">
            <span class="category category--{{ cat }}">
              {{ cat }}
            </span>
          </a>
        {% endfor %}
      {% endif %}
    </p>
  </header>
  {{ content | safe }}
  <aside>
    {% if lastmod %}
      <p>
        <strong>Last modified</strong>
        {{ lastmod | formatDate("yyyy-MM-dd") }}
      </p>
    {% endif %}
    {% if tags %}
      <p>
        <strong>Tags</strong>
        <ul>
          {% for tag in tags %}
            <li>{{ tag }}</li>
          {% endfor %}
        </ul>
      </p>
    {% endif %}
    {% if elsewhere %}
      <p>
        <strong>Elsewhere</strong>
        <ul>
            {% if elsewhere.ghost %}<li><a href="{{ elsewhere.ghost }}" rel="noreferrer nofollow noopener external" target="_blank">Ghost</a></li>{% endif %}
        </ul>
      </p>
    {% endif %}
  </aside>
</main>