Skip to content

Commit

Permalink
docs: make titleTemplate function form example clearer (nuxt#4616)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Roe <daniel@roe.dev>
  • Loading branch information
riddla and danielroe authored Apr 26, 2022
1 parent f0594d9 commit d012eff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/content/2.guide/2.features/4.head-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ For example:
```vue
<script setup>
useHead({
titleTemplate: 'My App - %s', // or, title => `My App - ${title}`
titleTemplate: 'My App - %s',
// or, instead:
// titleTemplate: (title) => `My App - ${title}`,
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
charset: 'utf-8',
meta: [
Expand Down

0 comments on commit d012eff

Please sign in to comment.