Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add noindex when URL contains "statik.be" #291

Closed
AntonLecock opened this issue Mar 6, 2024 · 0 comments · Fixed by #292
Closed

Add noindex when URL contains "statik.be" #291

AntonLecock opened this issue Mar 6, 2024 · 0 comments · Fixed by #292

Comments

@AntonLecock
Copy link
Contributor

AntonLecock commented Mar 6, 2024

Some of our websites are being indexed/crawled when still under construction.

The following snippet in _layout.twig might prevent this:

{% if 'statik.be' in baseUrl %} <meta name="robots" content="noindex"> {% endif %}

This used to work in an older version, see INTROK-127.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant