@dargmuesli/nuxt-vio 3.5.0 → 3.5.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.
@@ -2,7 +2,8 @@ export const useAppLayout = () => {
|
|
2
2
|
const appConfig = useAppConfig()
|
3
3
|
const siteConfig = useSiteConfig()
|
4
4
|
|
5
|
-
useServerHeadSafe
|
5
|
+
// TODO: replace with `useServerHeadSafe`
|
6
|
+
useHeadSafe({
|
6
7
|
...useLocaleHead({ addSeoAttributes: true }).value,
|
7
8
|
bodyAttrs: {
|
8
9
|
class:
|
@@ -11,7 +12,7 @@ export const useAppLayout = () => {
|
|
11
12
|
})
|
12
13
|
|
13
14
|
// TODO: convert to `useServerHeadSafe` (https://github.com/harlan-zw/nuxt-seo-kit/issues/98)
|
14
|
-
|
15
|
+
useSeoMeta({
|
15
16
|
titleTemplate: (title) =>
|
16
17
|
title && title !== siteConfig.name
|
17
18
|
? `${title} ${siteConfig.titleSeparator} ${siteConfig.name}`
|
@@ -19,11 +20,13 @@ export const useAppLayout = () => {
|
|
19
20
|
})
|
20
21
|
|
21
22
|
if (appConfig.vio.seoMeta) {
|
22
|
-
useServerSeoMeta
|
23
|
+
// TODO: replace with `useServerSeoMeta`
|
24
|
+
useSeoMeta(appConfig.vio.seoMeta)
|
23
25
|
}
|
24
26
|
|
25
27
|
if (appConfig.vio.themeColor) {
|
26
|
-
useServerSeoMeta
|
28
|
+
// TODO: replace with `useServerSeoMeta`
|
29
|
+
useSeoMeta({
|
27
30
|
msapplicationTileColor: appConfig.vio.themeColor,
|
28
31
|
themeColor: appConfig.vio.themeColor,
|
29
32
|
})
|
package/error.vue
CHANGED
@@ -20,7 +20,9 @@ const errorProp = toRef(() => props.error)
|
|
20
20
|
|
21
21
|
// initialization
|
22
22
|
useAppLayout()
|
23
|
-
|
23
|
+
|
24
|
+
// TODO: replace with `useServerHeadSafe`
|
25
|
+
useHeadSafe({
|
24
26
|
title: `${errorProp.value.statusCode} - ${errorProp.value.message}`,
|
25
27
|
})
|
26
28
|
</script>
|
package/nuxt.config.ts
CHANGED
@@ -6,6 +6,7 @@ import { defu } from 'defu'
|
|
6
6
|
import {
|
7
7
|
BASE_URL,
|
8
8
|
I18N_COOKIE_NAME,
|
9
|
+
I18N_MODULE_CONFIG,
|
9
10
|
SITE_NAME,
|
10
11
|
TIMEZONE_COOKIE_NAME,
|
11
12
|
VIO_NUXT_BASE_CONFIG,
|
@@ -160,7 +161,10 @@ export default defineNuxtConfig(
|
|
160
161
|
titleSeparator: '·',
|
161
162
|
},
|
162
163
|
sitemap: {
|
163
|
-
exclude:
|
164
|
+
exclude: I18N_MODULE_CONFIG.locales.map(
|
165
|
+
(locale) =>
|
166
|
+
`/${locale.code !== 'en' ? `${locale.code}/` : ''}api/pages/**`,
|
167
|
+
),
|
164
168
|
},
|
165
169
|
tailwindcss: {
|
166
170
|
cssPath: join(currentDir, './assets/css/tailwind.css'),
|