{%- if article_mode -%} {%- set parent = "article/{}.html".format(article_mode) -%} {%- else -%} {%- set parent = "base.html" -%} {%- endif -%} {%- extends parent -%} {%- block content -%}