Skip to content

Commit

Permalink
Define SEO Meta for each Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-32 committed Mar 5, 2024
1 parent a8daa61 commit 0cae946
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV NUXT_PUBLIC_SITE_NAME=${NUXT_PUBLIC_SITE_NAME}
ARG NUXT_PUBLIC_SITE_URL
ENV NUXT_PUBLIC_SITE_URL=${NUXT_PUBLIC_SITE_URL}

WORKDIR /app
WORKDIR /dist

COPY package.json .

Expand Down
19 changes: 19 additions & 0 deletions pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@ definePageMeta({
middleware: 'documentation'
})
useHead({
title: 'MoodHelper Docs',
meta: [
{ name: 'description', content: "Documentation for MoodHelper." }
],
link: [
{ rel: 'icon', type: 'image/png', href: '/moodhelper.png' }
]
})
useSeoMeta({
title: "MoodHelper Docs",
ogTitle: "MoodHelper Docs",
description: "Documentation for MoodHelper.",
ogDescription: "Documentation for MoodHelper.",
ogImage: '/moodhelper.png',
twitterCard: 'summary_large_image',
})
import DocumentationLayout from "~/layouts/DocumentationLayout.vue";
import PageFooter from "~/components/PageFooter.vue";
const { page } = useContent()
Expand Down
20 changes: 20 additions & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
<script setup lang="ts">
useHead({
title: 'MoodHelper',
meta: [
{ name: 'description', content: "MoodHelper is a mood-management assistance bot using Mistral AI." }
],
link: [
{ rel: 'icon', type: 'image/png', href: '/moodhelper.png' }
]
})
useSeoMeta({
title: "MoodHelper",
ogTitle: "MoodHelper",
description: "MoodHelper is a mood-management assistance bot using Mistral AI.",
ogDescription: "MoodHelper is a mood-management assistance bot using Mistral AI.",
ogImage: '/moodhelper.png',
twitterCard: 'summary_large_image',
})
import ChatBubble from "~/components/ChatBubble.vue";
const config = useRuntimeConfig()
Expand Down

0 comments on commit 0cae946

Please sign in to comment.