Commit e89fddb9 authored by shadMod's avatar shadMod 💬

added another dynamic news with dynamic year

parent cf25e9e8
......@@ -107,13 +107,15 @@ Home page
Ultime novità
</h2>
<ul class="item-list">
{% for news in news %}
{% for year, list_files in news.items() %}
{% for filename in list_files %}
<li>
<a href="{{ url_for('news.detail', year='2023', filename=news) }}">
Newsletter Italiana #Ubuntu - 2023.{{ news }}
<a href="{{ url_for('news.detail', year=year, filename=filename) }}">
Newsletter Italiana #Ubuntu - 2023.{{ filename.replace(".md", "") }}
</a>
</li>
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment