migrate notes

This commit is contained in:
2025-05-21 07:29:45 +01:00
parent 6a087aae48
commit 1538fc7904
11 changed files with 788 additions and 31 deletions

View File

@@ -7,7 +7,7 @@
<a href="/blog">Blog</a>
</li>
<li>
<a href="/links">Links</a>
<a href="{{ path('notes') }}">Notes</a>
</li>
</ul>
</nav>

View File

@@ -5,7 +5,9 @@
<section>
<h1>Note {{ note.slug }}</h1>
<time>{{ note.publishedDate.format('c') }}
<p>{{ note.content }}</p>
{% apply markdown_to_html %}
{{ note.content }}
{% endapply %}
</section>
{% else %}
<section>

View File

@@ -6,7 +6,9 @@
{% for note in notes %}
<h2><a href="/notes/{{ note.slug }}">Note {{ note.slug }}</a></h2>
<p>{{ note.content }}</p>
{% apply markdown_to_html %}
{{ note.content }}
{% endapply %}
{% else %}
<p>I have no notes.</p>
{% endfor %}