Skip to content
Snippets Groups Projects
Verified Commit c27535d4 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Include webring articles in news archive

parent d5b39a6d
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -3,15 +3,26 @@
{% block title %}{{ SITENAME }} — Archives{% endblock %}
{% block template_content_head %}
<div class="container">
<div class="col-sm-12">
<div class="row">
<div class="col-sm-12">
<h1>News</h1>
{% for article in articles %}
{% for article in (articles|list + webring_articles|list)|sort(reverse=True, attribute="date") %}
{% if article.source_link %}
{# This is a webring article #}
<h2><a href="{{ article.link }}">{{ article.title }}</a></h2>
<p>{{ article.date|strftime('%Y-%m-%d') }} · <a href="{{ article.source_link }}">{{ article.source_title }}</a></p>
{{ article.summary }}
{% else %}
{# This is a local article #}
<h2><a href="{{ article.url }}">{{ article.title }}</a></h2>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
<p>{{ article.date }} · <a href="{{ article.author.url }}">{{ article.author }}</a></p>
<p>{{ article.date|strftime('%Y-%m-%d') }} · <a href="{{ article.author.url }}">{{ article.author }}</a></p>
{{ article.summary }}
{% endfor %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment