{# @sw-package framework #} {% block layout_head_inner %} {% set metaInformation = page.metaInformation %} {% set basicConfig = config('core.basicInformation') %} {% set maxLength = config('seo.descriptionMaxLength') %} {% set metaDescription = metaInformation.metaDescription|striptags|trim|u.truncate(maxLength ?? 255, '…') %} {% set metaTitle = metaInformation.metaTitle|striptags|trim %} {% set metaKeywords = metaInformation.metaKeywords|striptags|trim %} {% set metaAuthor = (metaInformation.author != '') ? metaInformation.author : config('core.basicInformation.metaAuthor') %} {% block layout_head_meta_tags %} {% block layout_head_meta_tags_charset %} {% endblock %} {% block layout_head_meta_tags_viewport %} {% endblock %} {% block layout_head_meta_tags_general %} {% endblock %} {% block layout_head_meta_tags_opengraph %} {% if not page.isErrorPage() is defined or page.isErrorPage() === false %} {% endif %} {% endblock %} {% block layout_head_meta_tags_schema_webpage %} {% endblock %} {% block layout_head_meta_tags_theme %} {% if theme_config('sw-background-color') %} {% endif %} {% endblock %} {% block layout_head_meta_tags_hreflangs %} {% for link in hrefLang %} {% endfor %} {% endblock %} {% endblock %} {% block layout_head_favicon %} {% endblock %} {% block layout_head_apple %} {% if theme_config('sw-logo-share') %} {% endif %} {% endblock %} {% block layout_head_canonical %} {% if page.metaInformation.canonical %} {% endif %} {% endblock %} {% block layout_head_title %} {% block layout_head_title_inner %}{{- metaTitle -}}{% endblock %} {% endblock %} {% block layout_head_stylesheet %} {% if isHMRMode %} {# CSS will be loaded from the JS automatically #} {% else %} {% set assets = theme_config('assets.css') %} {% for file in assets %} {% endfor %} {% endif %} {% endblock %} {% block layout_head_javascript_feature %} {% sw_include '@Storefront/storefront/component/feature.html.twig' %} {% endblock %} {# Block for tracking scripts which are required to be included in the `head` section of the document #} {% block layout_head_javascript_tracking %} {% sw_include '@Storefront/storefront/component/analytics.html.twig' %} {% endblock %} {% block layout_head_javascript_recaptcha %} {% sw_include '@Storefront/storefront/component/recaptcha.html.twig' %} {% endblock %} {% block layout_head_javascript_token %} {% endblock %} {% if config('core.basicInformation.useDefaultCookieConsent') %} {% block layout_head_javascript_cookie_state %} {% endblock %} {% endif %} {% block layout_head_javascript_router %} {# Register all routes that will be needed in JavaScript to the window.router object #} {% endblock %} {% block layout_head_javascript_breakpoints %} {# Register the available viewport breakpoints as window.breakpoints object #} {% endblock %} {% if config('core.cart.wishlistEnabled') %} {% block layout_head_javascript_wishlist_state %} {% endblock %} {% endif %} {# jQuery is removed from the default Storefront since tag:v6.5.0 - This block should be used to add jQuery as a ` {% for script in theme_scripts() %} {% endfor %} {% endblock %} {% else %} {% block layout_head_javascript_prod %} {% for script in theme_scripts() %} {% endfor %} {% endblock %} {% endif %} {% endblock %} {% endblock %}