{% extends 'base.html.twig' %}

{% block content %}
    <section>
        <h1>Notes</h1>

        {% for note in notes %}
            <h2><a href="/notes/{{ note.slug }}">Note {{ note.slug }}</a></h2>
            {% apply markdown_to_html %}
                {{ note.content }}
            {% endapply %}
        {% else %}
            <p>I have no notes.</p>
        {% endfor %}
    </section>
{% endblock %}
