Different title for home page

Many websites have a different title for their home page than for their articles. For example the New York Times:

  • Home page = The New York Times: Breaking News, World News & Multimedia
  • Article = Article Name - The New York Times

I want the same thing on my site. The articles can easily be edited to include the website name at the end.

But the home page isn’t so easy. I can’t just change the site name on the “General” tab of the editor, because that messes with the Google structured data.

I was thinking of implementing it this way in the head.

{{#is "home"}}
    <title>Example - Website Tagline</title>
{{else}}
    <title>{{meta_title}}</title>
{{/is}}

Is this the right way to do it? I got a little confused looking at this documentation page between the difference of “home” and “index”.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.