{# this is html5, xmlish variant #} {%- import "snippets.html" as snippets with context %} {%- set head = snippets.head() %} {%- set scripts = snippets.scripts() %} {%- set stylesheets = snippets.stylesheets() %} {# 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 %} {% for name, content in theme_supp.meta_items -%} {% endfor %} {% endblock %} {{ head }} {% block head_title %} {%- if title -%} {{ title }} {% elif title_name %} {{ title_name }} {% elif headline %} {{ headline }} {% else %} {{ item_name }} {%- endif %} - {%- if cfg.html_pagetitle -%} {{ cfg.html_pagetitle }}{% else %} {{ cfg.sitename }}{%- endif -%} {% endblock %} {% block head_links %} {% block bootstrap_stylesheet %} {% endblock %} {% block icons_stylesheet %} {% endblock %} {% block theme_stylesheets %} {{ stylesheets }} {% endblock %} {% if user.valid and user.css_url -%} {%- endif %} {% endblock %} {% endblock %} {% block layout %}

Extend this block only if you want to change layout. If you want to put content, extends layout.html and use placeholders item and content.

{% endblock %} {% block body_scripts %} {# js before reduces IE8 js errors related to svgweb #} {{ scripts }} {% endblock %}