Version: v0.8.1 - Beta.  We welcome contributors & feedback.

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.

$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

See Also