Created
January 11, 2019 11:16
-
-
Save ankedsgn/239f38964a7c15fc38d68736c91f539c to your computer and use it in GitHub Desktop.
Return a title in the Bolt 404 page with SEO extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if app.request.get('_route') %}{# no route, no SEO tags #} | |
<title>{{ seo.title() }}</title> | |
{{ seo.metatags() }} | |
{% else %} | |
<title>Niet Gevonden | {{ config.get('general/sitename') }}</title> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment