Skip to content

Commit 3e9d7bc

Browse files
committed
fix: head data from route.meta instead of route
1 parent e480ab9 commit 3e9d7bc

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

app/layouts/cards.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ const route = useRoute();
33
44
useSeoMeta({
55
author: "Thomas Lamant",
6-
title: (route.title as string) || "Thomas Lamant",
7-
ogTitle: (route.title as string) || "Thomas Lamant",
8-
description: (route.description as string) || "Thomas Lamant's homepage",
9-
ogDescription: (route.description as string) || "Thomas Lamant's homepage",
6+
title: (route.meta.title as string) || "Thomas Lamant",
7+
ogTitle: (route.meta.title as string) || "Thomas Lamant",
8+
description: (route.meta.description as string) || "Thomas Lamant's homepage",
9+
ogDescription:
10+
(route.meta.description as string) || "Thomas Lamant's homepage",
1011
});
1112
</script>
1213

app/layouts/default.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ const route = useRoute();
33
44
useSeoMeta({
55
author: "Thomas Lamant",
6-
title: (route.title as string) || "Thomas Lamant",
7-
ogTitle: (route.title as string) || "Thomas Lamant",
8-
description: (route.description as string) || "Thomas Lamant's homepage",
9-
ogDescription: (route.description as string) || "Thomas Lamant's homepage",
6+
title: (route.meta.title as string) || "Thomas Lamant",
7+
ogTitle: (route.meta.title as string) || "Thomas Lamant",
8+
description: (route.meta.description as string) || "Thomas Lamant's homepage",
9+
ogDescription:
10+
(route.meta.description as string) || "Thomas Lamant's homepage",
1011
});
1112
</script>
1213

0 commit comments

Comments
 (0)