{% extends "base.html" %}

{% block title %}{{ note.slug }} - StarPunk{% endblock %}

{% block content %}
<article class="h-entry">
  <div class="e-content">
    {{ note.html|safe }}
  </div>
  <footer class="note-meta">
    <a class="u-url" href="{{ url_for('public.note', slug=note.slug) }}">
      <time class="dt-published" datetime="{{ note.created_at.isoformat() }}">
        {{ note.created_at.strftime('%B %d, %Y at %I:%M %p') }}
      </time>
    </a>
    {% if note.updated_at and note.updated_at != note.created_at %}
    <span class="updated">
      (Updated: <time datetime="{{ note.updated_at.isoformat() }}">{{ note.updated_at.strftime('%B %d, %Y') }}</time>)
    </span>
    {% endif %}
  </footer>
  <nav class="note-nav">
    <a href="/">Back to all notes</a>
  </nav>
</article>
{% endblock %}
