Skip to content
Snippets Groups Projects
Verified Commit a6ff6843 authored by Jake's avatar Jake
Browse files

updated renderers.html

parent 7b5a290c
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,7 @@
{%- macro section_tag(s, lang) -%}
{%- if s.title is not defined -%}
<header>
<h2 {% if s.id is defined -%}id="{{ s.id }}"{%- endif %}>{{ common.softbreak_span(s.tag.title) }}</h2>
</header>
{{ common.render_header(s.tag.title, 2, {"id": s.id}, lang) }}
{%- endif -%}
{{ cards.cards_from_pages(s.tag.pages, lang, max=s.num|d(None)) }}
......@@ -26,9 +24,7 @@
{%- macro section(s, lang) -%}
{%- if s.title is defined -%}
<header>
<h2 {% if s.id is defined -%}id="{{ s.id }}"{%- endif %}>{{ common.softbreak_span(s.title[lang]) }}</h2>
</header>
{{ common.render_header(s.title[lang], 2, {"id": s.id}, lang) }}
{%- endif -%}
{%- if s.type == "news" -%}
{{ section_news(s, lang) }}
......
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