24 lines
850 B
Twig
24 lines
850 B
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block content %}
|
|
{% if note %}
|
|
<section class="h-entry">
|
|
<h1 class="p-name">Note {{ note.slug }}</h1>
|
|
<a hidden class="p-author h-card" href="{{ url('index') }}">Joe Carstairs</a>
|
|
<a hidden class="u-url" href="{{ url('note', { slug: note.slug }) }}">Permalink</a>
|
|
<time class="dt-published">{{ note.publishedDate.format('c') }}
|
|
{% apply markdown_to_html %}
|
|
<section class="e-content">
|
|
{{ note.content }}
|
|
</section>
|
|
{% endapply %}
|
|
</section>
|
|
{% else %}
|
|
<section>
|
|
<h1>Note not found</h1>
|
|
<p>I don't have a note '{{ slug }}'.</p>
|
|
<p>Go back to <a href="/notes">Notes</a>.</p>
|
|
</section>
|
|
{% endif %}
|
|
{% endblock %}
|