@dargmuesli/nuxt-vio 13.2.0 → 13.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,8 @@ export const useAppLayout = () => {
|
|
11
11
|
})
|
12
12
|
|
13
13
|
// TODO: convert to `useServerHeadSafe` (https://github.com/unjs/unhead/issues/221)
|
14
|
-
|
14
|
+
// adding `Server` leads incorrect title template on hydration
|
15
|
+
useSeoMeta({
|
15
16
|
titleTemplate: (title) =>
|
16
17
|
TITLE_TEMPLATE({
|
17
18
|
siteName: siteConfig.name,
|
@@ -4,14 +4,13 @@ export const useHeadDefault = (input: UseSeoMetaInput) => {
|
|
4
4
|
const siteConfig = useSiteConfig()
|
5
5
|
|
6
6
|
const description = input.description || siteConfig.description
|
7
|
-
const title =
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
})
|
12
|
-
: siteConfig.name
|
7
|
+
const title = TITLE_TEMPLATE({
|
8
|
+
siteName: siteConfig.name,
|
9
|
+
title: input.title?.toString(),
|
10
|
+
})
|
13
11
|
|
14
|
-
|
12
|
+
// can't be server side or it won't update on the client
|
13
|
+
useSeoMeta({
|
15
14
|
...(description
|
16
15
|
? {
|
17
16
|
description,
|
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED