diff --git a/theme/templates/base.html b/theme/templates/base.html index aa0fb96f3f5c325d8144939d8e341d7b09ac33e3..aa8f26311b72a3f8c57b798d21bfcef86e274d06 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -20,7 +20,7 @@ Hurra!!! lang ist definiert als {{ lang }}. {%- endmacro -%} {%- macro article_by_slug(slug, lang) -%} - {%- for a in articles -%} + {%- for a in all_articles -%} {%- if a.slug == slug and a.lang == lang -%} {{- caller(a) -}} {%- endif -%} @@ -36,7 +36,7 @@ Hurra!!! lang ist definiert als {{ lang }}. {%- endmacro -%} {%- macro article_or_page_by_slug(slug, lang) -%} - {%- for a in articles -%} + {%- for a in all_articles -%} {%- if a.slug == slug and a.lang == lang -%} {{- caller(a) -}} {%- endif -%} diff --git a/theme/templates/index.html b/theme/templates/index.html index 985f2c93d408582f7fd8ced645b12dda37045b38..25de6adda54c4f903c09073e601a163552d9f0f2 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -3,7 +3,7 @@ {%- macro render_section_news(s) -%} <ul class="catcards"> - {%- for article in articles -%} + {%- for article in all_articles -%} {%- if loop.index < s.num -%} {%- call(nativecat, sccat, _) category_by_name(article.category.name) -%} <li style="--category-color: {{ sccat.color }}"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>