mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +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
|
||||
<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: [
|
||||
|
Loading…
Reference in New Issue
Block a user