templates/front/_common/_metatags.html.twig line 1

Open in your IDE?
  1. {% set seo_default_title = detalle.title|default(title|default(info.seoTitle)) %}
  2. {% set seo_description = seo.description|default(info.seoDescription) %}
  3. <title>{{ seo.title|default(seo_default_title)|striptags }}</title>
  4. {% if seo_description %}
  5.     <meta name="Description" content="{{ seo_description }}">
  6. {% endif %}
  7. {% if seo is not null %}
  8.     {% if info.seoIndexing and seo.indexing %}
  9.         <meta property="og:url" content="{{ app.request.getSchemeAndHttpHost() ~ url_seo }}" />
  10.         <meta property="og:type" content="website" />
  11.         {% if seo.socialTitle %}
  12.             <meta property="og:title" content="{{ seo.socialTitle }}" />
  13.         {% endif %}
  14.         {% if seo.socialDescription %}
  15.             <meta property="og:description" content="{{ seo.socialDescription }}" />
  16.         {% endif %}
  17.         {% if seo.socialImage|image_path %}
  18.             <meta property="og:image" content="{{ url(asset(seo.socialImage|image_path)) }}" />
  19.         {% endif %}
  20.     {% else %}
  21.         <meta name="robots" content="noindex">
  22.         <meta name="googlebot" content="noindex">
  23.     {% endif %}
  24. {% else %}
  25.     <meta name="robots" content="noindex">
  26.     <meta name="googlebot" content="noindex">
  27. {% endif %}