feat: add news module with admin panel, pagination, and service toggle via env flag
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user