mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
docs: make titleTemplate function form example clearer (#4616)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
f0594d9037
commit
d012eff808
@ -13,7 +13,9 @@ For example:
|
|||||||
```vue
|
```vue
|
||||||
<script setup>
|
<script setup>
|
||||||
useHead({
|
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',
|
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
|
||||||
charset: 'utf-8',
|
charset: 'utf-8',
|
||||||
meta: [
|
meta: [
|
||||||
|
Loading…
Reference in New Issue
Block a user