Skip to content
Snippets Groups Projects
Verified Commit 04d7511f authored by Jake's avatar Jake :speech_balloon:
Browse files

support referencing tags in menu

parent eee1a0c8
Branches
No related tags found
No related merge requests found
Pipeline #312564 passed
...@@ -51,6 +51,10 @@ Hurra!!! lang ist definiert als {{ lang }}. ...@@ -51,6 +51,10 @@ Hurra!!! lang ist definiert als {{ lang }}.
{%- call(nativecat, sccat, _) get.category_by_name(item.category) -%} {%- call(nativecat, sccat, _) get.category_by_name(item.category) -%}
<li style="--category-color: {{ sccat.color }}"><a href="{{ SITEURL }}/{{ nativecat.url }}">{{ sccat[lang]|e }}</a></li> <li style="--category-color: {{ sccat.color }}"><a href="{{ SITEURL }}/{{ nativecat.url }}">{{ sccat[lang]|e }}</a></li>
{%- endcall -%} {%- endcall -%}
{%- elif item.tag is defined -%}
{%- call(nativetag, sccat, _) get.tag_by_name(item.tag) -%}
<li style="--category-color: {{ sccat.color }}"><a href="{{ SITEURL }}/{{ nativetag.url }}">{{ sccat[lang]|e }}</a></li>
{%- endcall -%}
{%- elif item.slug is defined -%} {%- elif item.slug is defined -%}
{%- call(aop, _) get.article_or_page_by_slug(item.slug, lang) -%} {%- call(aop, _) get.article_or_page_by_slug(item.slug, lang) -%}
{%- call(__, sccat, ___) get.category_by_name(aop.category.name, True) -%} {%- call(__, sccat, ___) get.category_by_name(aop.category.name, True) -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment