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

let custom content contain links

parent 25963a0b
No related branches found
No related tags found
No related merge requests found
Pipeline #313251 passed
......@@ -9,7 +9,11 @@
{%- macro section_custom(s, lang) -%}
{{ cards.open() }}
{%- for c in s.content -%}
{{ cards.card(title=c[lang], url=c.url, catcolor=c.color, lang=lang) }}
{%- if c is string -%}
{{ cards.card_from_link(url=c, lang=lang) }}
{%- else -%}
{{ cards.card(title=c[lang], url=c.url, catcolor=c.color, lang=lang) }}
{%- endif -%}
{%- endfor -%}
{{ cards.close() }}
{%- endmacro -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment