Compare commits

..

No commits in common. "edd8fb9df19056f8251f5b3bab6c958421be7769" and "a42609c2e650bf1e0f9f4367fcd91affb822ee5e" have entirely different histories.

3 changed files with 5 additions and 17 deletions

View File

@ -1,9 +1,7 @@
{% for date, sections in posts[language].items() %}
{% for section, urls in sections.items() %}
{% for section, urls in posts[language].items() %}
{% if section != "/" %}
{% for url, post in urls.items() %}
{% include "components/post_summary.j2" %}
{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}

View File

@ -1,7 +1,3 @@
{% for date, sections in posts[language].items() %}
{% if section in sections %}
{% for url, post in posts[language][date][section].items() %}
{% for url, post in posts[language][section].items() %}
{% include "components/post_summary.j2" %}
{% endfor %}
{% endif %}
{% endfor %}

View File

@ -1,17 +1,11 @@
<div class="sidebar">
<section>
{% set sections_list = [] %}
{% for date, sections in posts[language].items() %}
{% for section, urls in sections.items() %}
{% for section, urls in posts[language].items() %}
{% if section != "/" %}
{% set sections_list = sections_list.append(section) %}
{% endif %}
{% endfor %}
{% endfor %}
{% for section in sections_list | unique %}
<p>
<a href="/{{ language}}/{{ section }}/">{{ translate(section, language) }}</a>
<a href="/{{ language}}/{{ section }}/">{{ translate(section, language) }} ({{ urls | length }})</a>
</p>
{% endif %}
{% endfor %}
</section>
</div>