{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_canonical %}
{% if cbaxModulManufacturers %}
{% if cbaxModulManufacturers.page == "index" %}
<link rel="canonical" href="{{ seoUrl('frontend.cbax.manufacturer.index') }}" />
{% else %}
<link rel="canonical" href="{{ seoUrl('frontend.cbax.manufacturer.detail', { cbaxManufacturerId: cbaxModulManufacturers.manufacturer.id}) }}" />
{% endif %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block layout_head_meta_tags_keywords %}{% apply spaceless %}
{% if cbaxModulManufacturers %}
{% if cbaxModulManufacturers.page == "index" %}
{{ "cbaxManufacturer.page.index.metaKeywords"|trans }}
{% else %}
{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaKeyword|striptags|trim|u.truncate(160) }}
{% endif %}
{% else %}
{{ parent() }}
{% endif %}
{% endapply %}{% endblock %}
{% block layout_head_meta_tags_description %}{% apply spaceless %}
{% if cbaxModulManufacturers %}
{% if cbaxModulManufacturers.page == "index" %}
{{ "cbaxManufacturer.page.index.metaDescription"|trans }}
{% else %}
{% if cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaDescription %}
{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaDescription|striptags|trim|u.truncate(160) }}
{% else %}
{{ cbaxModulManufacturers.manufacturer.translated.description|striptags|trim|u.truncate(160) }}
{% endif %}
{% endif %}
{% else %}
{{ parent() }}
{% endif %}
{% endapply %}{% endblock %}
{% block layout_head_title_inner %}{% apply spaceless %}
{% if cbaxModulManufacturers %}
{% if cbaxModulManufacturers.page == "index" %}
{{ "cbaxManufacturer.page.index.allManufacturers"|trans }} | {{ metaTitle }}
{% else %}
{% if cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle %}
{{ cbaxModulManufacturers.manufacturer.translated.customFields.cbaxManufacturerMetaTitle|striptags|trim }}
{% else %}
{{ cbaxModulManufacturers.manufacturer.translated.name }} | {{ metaTitle }}
{% endif %}
{% endif %}
{% else %}
{{ parent() }}
{% endif %}
{% endapply %}{% endblock %}