Compare commits
No commits in common. "edd8fb9df19056f8251f5b3bab6c958421be7769" and "a42609c2e650bf1e0f9f4367fcd91affb822ee5e" have entirely different histories.
edd8fb9df1
...
a42609c2e6
|
@ -1,9 +1,7 @@
|
||||||
{% for date, sections in posts[language].items() %}
|
{% for section, urls in posts[language].items() %}
|
||||||
{% for section, urls in sections.items() %}
|
|
||||||
{% if section != "/" %}
|
{% if section != "/" %}
|
||||||
{% for url, post in urls.items() %}
|
{% for url, post in urls.items() %}
|
||||||
{% include "components/post_summary.j2" %}
|
{% include "components/post_summary.j2" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -1,7 +1,3 @@
|
||||||
{% for date, sections in posts[language].items() %}
|
{% for url, post in posts[language][section].items() %}
|
||||||
{% if section in sections %}
|
|
||||||
{% for url, post in posts[language][date][section].items() %}
|
|
||||||
{% include "components/post_summary.j2" %}
|
{% include "components/post_summary.j2" %}
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -1,17 +1,11 @@
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<section>
|
<section>
|
||||||
{% set sections_list = [] %}
|
{% for section, urls in posts[language].items() %}
|
||||||
{% for date, sections in posts[language].items() %}
|
|
||||||
{% for section, urls in sections.items() %}
|
|
||||||
{% if section != "/" %}
|
{% if section != "/" %}
|
||||||
{% set sections_list = sections_list.append(section) %}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endfor %}
|
|
||||||
{% for section in sections_list | unique %}
|
|
||||||
<p>
|
<p>
|
||||||
<a href="/{{ language}}/{{ section }}/">{{ translate(section, language) }}</a>
|
<a href="/{{ language}}/{{ section }}/">{{ translate(section, language) }} ({{ urls | length }})</a>
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue