franca-theme-blog/templates/components/sidebar.j2

11 lines
327 B
Django/Jinja

<div class="sidebar">
<section>
{% for section, urls in posts[language].items() %}
{% if section != "/" %}
<p>
<a href="/{{ language}}/{{ section }}/">{{ translate(section, language) }} ({{ urls | length }})</a>
</p>
{% endif %}
{% endfor %}
</section>
</div>