What I want to achieve:
For the title and other meta tags, I want to display titleA
For the title of the posts that are displayed internally, including main article lists or the article page itself, I want to display titleB
What I am getting instead:
Right now I have %title=better_title
which points to a helper better_title
in config.rb
. The helper works just fine and modifies the title as I want but unfortunately, he will modify the title across the entire website.
It’s because my internal pages like index and article pages use article.title
so once the helper from config.rb
kicks in, it will modify it for all.
How can I structure it?