Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Move page title into a block to optionally override it. #155

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

NicoHood
Copy link
Contributor

No description provided.

@rhukster
Copy link
Member

This is not a bad idea, but its not really required and does make the example more complicated.

@NicoHood
Copy link
Contributor Author

The idea is to override the title in another twig template. The reason why I am using this is for SEO. The current title with the pipe | is not the best solution for getting good results with search engines. In my own additional twig template i used a new title that uses page collection data.

@NicoHood
Copy link
Contributor Author

I have updated the PR to use a variable instead of a block. Now the title it also correctly aligned inside the <title> tags.

You can now override it via:

{% set title_override = 'Custom Title, set from a twig template' %}

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

Successfully merging this pull request may close these issues.

2 participants