Community

If homepage, show different title

So when making a new website in resources context I always give the website a name. It can be the brandname or my personal name. It’s the name I want to see behind every page title. Like
Pagetitle - Sitename.

But I do not want the pagename to be shown on the homepage like: ‘Home - Sitename’
Here’s how I fixed it. If you have another solution, let me know.

<title>
[[*id:eq=`[[++site_start]]`:then=`[[++site_name]]`:else=`[[*pagetitle]] | [[++site_name]]`]]
</title>
3 Likes

Nice tip.
Thanks for the share.

2 Likes