docs: make titleTemplate function form example clearer (#4616)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
Volker Rose 2022-04-26 16:34:20 +02:00 committed by GitHub
parent f0594d9037
commit d012eff808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: [