add blogpost and cdn chall

This commit is contained in:
Jonathan committed 2025-10-10 22:34:43 +07:00
1 parent ea02892f14
commit 2d51b73a1e
47 files changed
+1904

No files matched your search

@@ -0,0 +1,13 @@
{% extends "layout.html" %}
{% block content %}
<article>
<h2>{{ post['title'] or 'Untitled' }}</h2>
<p>By {{ post['author'] or 'unknown' }}</p>
{% if post['image_filename'] %}
<img src="{{ url_for('uploaded_file', filename=post['image_filename']) }}" style="max-width:400px">
{% endif %}
<p>{{ post['content'] }}</p>
</article>
{% endblock %}