HTML title tag
Let's see how we can set an HTML title tag with Kirby.
You can use the site wide $site->title()
in connection with the title of the current page $page->title
to generate something pretty decent:
…or…
…just however you prefer.
But what if you want to have a very descriptive title for your homepage or just the site title, without adding an extra template for it?
Kirby has the built-in $page->isHomePage()
function, which makes it fairly simple to change your title only on the homepage:
…or maybe just…