{% import "macros/helper.html.twig" as ContentHelper %}
{{ renderHook('head.top') }}
{{ renderHook('website.head.top') }}
{% block head %}
{% if WEBSITE.title_format %}{% filter page_html_content(page, '@head:title') %}{% include template_from_string(WEBSITE.title_format) %}{% endfilter %}{% else %}{{ currentPage.title }}{% endif %}
{{ pageFavicon() }}
{% filter page_html_content(page, '@head:seo_meta_tags') %}
{% autoescape false %}
{{ currentPage.getSeoHtml() }}
{% endautoescape %}
{% endfilter %}
{% if WEBSITE.google_webmaster_tools_tag %}
{% endif %}
{% if WEBSITE.yandex_webmaster_code %}
{% endif %}
{% endblock %}
{% block css %}
{% if isPreview %}
{% endif %}
{% endblock %}
{% if not isPreview %}
{% if WEBSITE.google_analytics_id %}
{% endif %}
{% if WEBSITE.yandex_metrica_counter.id %}
{% endif %}
{% endif %}
{{ renderHook('website.head.bottom') }}
{{ renderHook('head.bottom') }}
{{ currentPage.getCodeInjection('header') | raw }}
{{ renderHook('body.top') }}
{{ renderHook('website.body.top') }}
{% filter page_html_content(currentPage, '@body:content') %}
{% block content %}{% endblock %}
{% endfilter %}
{% if (WEBSITE.back_to_top_button and FEATURES.theme_back_to_top_button) %}
{% endif %}
{% block js %}
{% if isPreview %}
{% endif %}
{% endblock %}
{{ renderHook('website.body.bottom') }}
{{ renderHook('body.bottom') }}
{{ currentPage.getCodeInjection('footer') | raw }}