feat: add news module with admin panel, pagination, and service toggle via env flag

This commit is contained in:
2026-05-11 20:12:43 +00:00
parent f7ca123cd6
commit 331e19b14e
18 changed files with 977 additions and 62 deletions
+22
View File
@@ -52,5 +52,27 @@
Already have an account? <a href="/auth/login">Log In</a>
</div>
</section>
{% if landing_articles %}
<section class="landing-news">
<h2>Developer News</h2>
<div class="landing-news-grid">
{% for article in landing_articles %}
<a href="{{ article.url }}" target="_blank" rel="noopener" class="landing-news-card">
{% if article.image_url %}
<div class="landing-news-img">
<img src="{{ article.image_url }}" alt="" loading="lazy">
</div>
{% endif %}
<div class="landing-news-body">
<span class="landing-news-source">{{ article.source_name }}</span>
<h3>{{ article.title[:100] }}{% if article.title|length > 100 %}...{% endif %}</h3>
<span class="landing-news-date">{{ article.synced_at }}</span>
</div>
</a>
{% endfor %}
</div>
</section>
{% endif %}
</div>
{% endblock %}