{# this is html5, xmlish variant #} {% import "snippets.html" as snippets with context %} {%- set head = snippets.head() %} {%- set scripts = snippets.scripts() %} {%- set stylesheets = snippets.stylesheets() %} {%- set favicon = snippets.favicon() %} {#- This allows child templates passing their header_search macro to the common layout (eg blog). If there is no header_search macro defined in child templates use the default one. #} {%- if not header_search %} {%- from "utils.html" import header_search %} {%- endif -%}
{%- block head %} {%- block head_meta %} {# must be at the beginning #} {%- if pi_refresh -%} {{ '' % pi_refresh }} {%- endif %} {%- if html_head_meta %} {%- for name, content in html_head_meta.items() %} {%- endfor %} {%- endif %} {%- endblock -%} {{ head }} {%- block head_title %}