From 4ad93e241e9822c4a21ca37ade524f68d98a2b82 Mon Sep 17 00:00:00 2001 From: "j.vondoemming" <j.vondoemming@stud.uni-goettingen.de> Date: Sun, 31 Jul 2022 18:15:35 +0200 Subject: [PATCH] use all_articles instead of articles closes GAUMI-fginfo/fg-website#27 --- theme/templates/base.html | 4 ++-- theme/templates/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/theme/templates/base.html b/theme/templates/base.html index aa0fb96..aa8f263 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 985f2c9..25de6ad 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> -- GitLab