Skip to content
Snippets Groups Projects
Commit 4ad93e24 authored by Jake's avatar Jake
Browse files

use all_articles instead of articles

closes #27
parent 2f7861be
No related branches found
No related tags found
No related merge requests found
Pipeline #312293 passed
...@@ -20,7 +20,7 @@ Hurra!!! lang ist definiert als {{ lang }}. ...@@ -20,7 +20,7 @@ Hurra!!! lang ist definiert als {{ lang }}.
{%- endmacro -%} {%- endmacro -%}
{%- macro article_by_slug(slug, lang) -%} {%- macro article_by_slug(slug, lang) -%}
{%- for a in articles -%} {%- for a in all_articles -%}
{%- if a.slug == slug and a.lang == lang -%} {%- if a.slug == slug and a.lang == lang -%}
{{- caller(a) -}} {{- caller(a) -}}
{%- endif -%} {%- endif -%}
...@@ -36,7 +36,7 @@ Hurra!!! lang ist definiert als {{ lang }}. ...@@ -36,7 +36,7 @@ Hurra!!! lang ist definiert als {{ lang }}.
{%- endmacro -%} {%- endmacro -%}
{%- macro article_or_page_by_slug(slug, lang) -%} {%- 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 -%} {%- if a.slug == slug and a.lang == lang -%}
{{- caller(a) -}} {{- caller(a) -}}
{%- endif -%} {%- endif -%}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{%- macro render_section_news(s) -%} {%- macro render_section_news(s) -%}
<ul class="catcards"> <ul class="catcards">
{%- for article in articles -%} {%- for article in all_articles -%}
{%- if loop.index < s.num -%} {%- if loop.index < s.num -%}
{%- call(nativecat, sccat, _) category_by_name(article.category.name) -%} {%- call(nativecat, sccat, _) category_by_name(article.category.name) -%}
<li style="--category-color: {{ sccat.color }}"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li> <li style="--category-color: {{ sccat.color }}"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment