{# 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 %} {%- 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 -%} {{ favicon }} {%- block theme_stylesheets %} {%- if theme_supp.variables_css() %} {%- endif %} {{ 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, extend layout.html and use placeholders item and content.

{%- endblock %}
{% block options_for_javascript %} {#- implement this block to pass server side options to client side javascript. -#} {%- endblock %}
{%- block body_scripts %} {{- scripts }} {%- endblock %}