{% extends "base.html" %} {% block content_title %}{% endblock %} {%- macro render_section_news(s) -%} {%- endmacro -%} {%- macro render_section_custom(s) -%} {%- endmacro -%} {%- macro render_section_iframe(s) -%} {%- endmacro -%} {%- macro render_section_category(s) -%} {%- call(nativecat, sccat, catarticles) category_by_name(s.category) -%} {%- if s.title is not defined -%}

{{ sccat[lang]|e }}

{%- endif -%} {%- endcall -%} {%- endmacro -%} {%- macro render_section(s) -%} {%- if s.title is defined -%}

{{ s.title[lang]|e }}

{%- endif -%} {%- if s.type == "news" -%} {{ render_section_news(s) }} {%- elif s.type == "iframe" -%} {{ render_section_iframe(s) }} {%- elif s.type == "custom" -%} {{ render_section_custom(s) }} {%- elif s.type == "category" -%} {{ render_section_category(s) }} {%- else -%}
ERROR: render_section: Unknown section type: {{ s.type|e }}

{%- endif -%} {%- endmacro -%} {% block content %} {%- for s in sc.startpage -%}
{{ render_section(s) }}
{%- endfor -%} {% endblock content %}