fix: render notes with content.html if present (web interface compatibility)

This commit is contained in:
svemagie
2026-03-07 21:00:36 +01:00
parent f9652e592f
commit 519a7cb36f
+5 -1
View File
@@ -45,7 +45,11 @@ permalink: "notes/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumbe
{% endif %} {% endif %}
</div> </div>
<div class="e-content prose dark:prose-invert prose-sm mt-3 max-w-none"> <div class="e-content prose dark:prose-invert prose-sm mt-3 max-w-none">
{{ post.templateContent | safe }} {% if post.content and post.content.html %}
{{ post.content.html | safe }}
{% else %}
{{ post.templateContent | safe }}
{% endif %}
</div> </div>
<div class="post-footer mt-3"> <div class="post-footer mt-3">
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline">