templates/front/partials/seo.html.twig line 1

Open in your IDE?
  1. <title>{% if page.seoTitle is defined and page.seoTitle is not null %}{{ page.seoTitle }}{% else %}{{ page.title|remove_highlight_word | default(settings('siteName')) }}{% endif %}</title>
  2. <meta name="description"
  3.       content="{% if page.seoDescription is defined and page.seoDescription is not null %}{{ page.seoDescription | striptags }}{% else %}{{ page.description | striptags | default(settings('siteDescription')) }}{% endif %}">
  4. <link rel="canonical" href="{{ app.request.schemeAndHttpHost }}/{{ page.currentPath }}"/>
  5. {% if page.noIndex is defined and page.noIndex is not null and page.noIndex %}
  6.     <meta name="robots" content="noindex">{% endif %}
  7. {% if page.noFollow is defined and page.noFollow is not null and page.noFollow %}
  8.     <meta name="robots" content="noindex,nofollow">{% endif %}
  9. {# hreflang #}
  10. {# amp page link #}
  11. {# <link rel="amphtml" href="https://www.example.com/url/to/amp/document.html"> #}
  12. {# no index pages for dev environment #}
  13. {% if app_env == 'dev' %}
  14.     {# <meta name="robots" content="noindex"> #}
  15.     {# if you need to temporary allow SEO bots but still no google, uncomment next line and comment previous line #}
  16.     <meta name="googlebot" content="noindex">
  17. {% endif %}
  18. {# end noindex #}