Commit e89fddb9 authored by shadMod's avatar shadMod 💬

added another dynamic news with dynamic year

parent cf25e9e8
...@@ -107,13 +107,15 @@ Home page ...@@ -107,13 +107,15 @@ Home page
Ultime novità Ultime novità
</h2> </h2>
<ul class="item-list"> <ul class="item-list">
{% for news in news %} {% for year, list_files in news.items() %}
{% for filename in list_files %}
<li> <li>
<a href="{{ url_for('news.detail', year='2023', filename=news) }}"> <a href="{{ url_for('news.detail', year=year, filename=filename) }}">
Newsletter Italiana #Ubuntu - 2023.{{ news }} Newsletter Italiana #Ubuntu - 2023.{{ filename.replace(".md", "") }}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
{% endfor %}
</ul> </ul>
</div> </div>
</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