Page.setTitle
$page.setTitle($value) -> self
Description
Set the value of the title
tag of the page.
If you have defined an appName
, the full title will be formatted according to best practices for usability and search engine ranking.
- If there is no title (e.g. home page), the appName appears first, followed by the tagline.
- If the title is set, it appears first, followed by the appName.
$page = Page.create({ appName: 'Tasty Treats' joiner: '|' tagline: 'Recipes that are easy to make' }) $page.setTitle('Tangy Taco - Recipe') //= Tangy Taco - Recipe | Tasty Treats $page.setTitle('') //= Tasty Treats | Recipes that are easy to make