update cdn

This commit is contained in:
Jonathan committed 2025-10-11 13:08:07 +07:00
1 parent 3857f0bdc0
commit eb4f9ad157
27 files changed
+165 -78

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
{% extends "base.html" %}
{% block content %}
<h2>Gallery</h2>
{% if not posts %}
<p>No posts yet. <a href="{{ url_for('upload') }}">Upload one</a>.</p>
{% endif %}
<div class="grid">
{% for p in posts %}
<a class="card" href="{{ url_for('view_post', pid=p.id) }}">
<img src="{{ url_for('cdn_serve', filename=p.filename) }}" alt="thumb" />
<div class="meta">
<div class="title">{{ p.title }}</div>
<div class="sub">{{ p.username }} · {{ p.created_at }}</div>
</div>
</a>
{% endfor %}
</div>
{% endblock %}