Skip to content

Commit 280d81e

Browse files
feat: add seo module
1 parent 5c7181f commit 280d81e

File tree

3 files changed

+92
-18
lines changed

3 files changed

+92
-18
lines changed

nuxt.config.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,12 @@ export default defineNuxtConfig({
88
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
99
},
1010
},
11-
seo: {
12-
meta: {
13-
description: "Own Your Platform. Self-Host Your PaaS with Cosmify.",
14-
themeColor: [
15-
{ content: "#18181b", media: "(prefers-color-scheme: dark)" },
16-
{ content: "white", media: "(prefers-color-scheme: light)" },
17-
],
18-
author: "Alexander Padberg <undefinedhuman>",
19-
colorScheme: "dark light",
20-
applicationName: "Cosmify",
21-
ogSiteName: "Cosmify",
22-
ogLocale: "en_US",
23-
ogType: "website",
24-
ogUrl: "https://cosmify.dev",
25-
ogTitle: "Cosmify",
26-
},
27-
},
2811
site: {
2912
url: "https://cosmify.dev",
3013
name: "Cosmify Documentation",
3114
},
3215
modules: [
16+
"nuxt-seo-utils",
3317
"@nuxt/eslint",
3418
"shadcn-nuxt",
3519
"@nuxtjs/tailwindcss",
@@ -40,6 +24,23 @@ export default defineNuxtConfig({
4024
"@nuxtjs/robots",
4125
"@nuxt/content",
4226
],
27+
seo: {
28+
meta: {
29+
description: "Own Your Platform. Self-Host Your PaaS with Cosmify.",
30+
themeColor: [
31+
{ content: "#18181b", media: "(prefers-color-scheme: dark)" },
32+
{ content: "white", media: "(prefers-color-scheme: light)" },
33+
],
34+
author: "Alexander Padberg <undefinedhuman>",
35+
colorScheme: "dark light",
36+
applicationName: "Cosmify",
37+
ogSiteName: "Cosmify Documentation",
38+
ogLocale: "en_US",
39+
ogType: "website",
40+
ogUrl: "https://cosmify.dev",
41+
ogTitle: "Cosmify Documentation",
42+
},
43+
},
4344
plausible: {
4445
ignoredHostnames: ["localhost"],
4546
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"lucide-vue-next": "^0.473.0",
2525
"motion": "^12.0.6",
2626
"nuxt": "^3.15.2",
27+
"nuxt-seo-utils": "6.0.8",
2728
"nuxt-svgo": "4.0.14",
2829
"radix-vue": "^1.9.12",
2930
"shadcn-nuxt": "0.11.3",

yarn.lock

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
resolved "https://registry.yarnpkg.com/@antfu/utils/-/utils-0.7.10.tgz#ae829f170158e297a9b6a28f161a8e487d00814d"
2929
integrity sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==
3030

31+
"@antfu/utils@^8.1.0":
32+
version "8.1.0"
33+
resolved "https://registry.yarnpkg.com/@antfu/utils/-/utils-8.1.0.tgz#eea8fd74f35942a31c98f2bbd5a79b20bc18a515"
34+
integrity sha512-XPR7Jfwp0FFl/dFYPX8ZjpmU4/1mIXTjnZ1ba48BLMyKOV62/tiRjdsFcPs2hsYcSud4tzk7w3a3LjX8Fu3huA==
35+
3136
"@apidevtools/json-schema-ref-parser@^11.7.0":
3237
version "11.7.3"
3338
resolved "https://registry.yarnpkg.com/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.7.3.tgz#83ce7bd236fa5ea50f01a122054592df05890998"
@@ -1990,6 +1995,21 @@
19901995
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.1.tgz#28fa185f67daaf7b7a1a8c1d445132c5d979f8bd"
19911996
integrity sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==
19921997

1998+
"@unhead/addons@^1.11.16":
1999+
version "1.11.18"
2000+
resolved "https://registry.yarnpkg.com/@unhead/addons/-/addons-1.11.18.tgz#3398ee6dc437a5a816c9ac1880a407bf859ce54e"
2001+
integrity sha512-WIqqy3asQLvaNQlZd+P+IQ+y8Mu0YfGbnDBp8NW/ZzyeOYB/A5MjlfgC2wdX+J8Bk889VGvSZ0ymXm0N9Kd+ug==
2002+
dependencies:
2003+
"@rollup/pluginutils" "^5.1.4"
2004+
"@unhead/schema" "1.11.18"
2005+
"@unhead/shared" "1.11.18"
2006+
estree-walker "^3.0.3"
2007+
magic-string "^0.30.17"
2008+
mlly "^1.7.3"
2009+
ufo "^1.5.4"
2010+
unplugin "^2.1.2"
2011+
unplugin-ast "^0.13.1"
2012+
19932013
"@unhead/[email protected]", "@unhead/dom@^1.11.18":
19942014
version "1.11.18"
19952015
resolved "https://registry.yarnpkg.com/@unhead/dom/-/dom-1.11.18.tgz#2105b0afb567ee3f9c6b21771cfd2116bae8f37e"
@@ -1998,7 +2018,7 @@
19982018
"@unhead/schema" "1.11.18"
19992019
"@unhead/shared" "1.11.18"
20002020

2001-
2021+
"@unhead/[email protected]", "@unhead/schema@^1.11.16":
20022022
version "1.11.18"
20032023
resolved "https://registry.yarnpkg.com/@unhead/schema/-/schema-1.11.18.tgz#bb8f861c0872e98b500038cb926ec3755d539d33"
20042024
integrity sha512-a3TA/OJCRdfbFhcA3Hq24k1ZU1o9szicESrw8DZcGyQFacHnh84mVgnyqSkMnwgCmfN4kvjSiTBlLEHS6+wATw==
@@ -4737,6 +4757,13 @@ image-meta@^0.2.1:
47374757
resolved "https://registry.yarnpkg.com/image-meta/-/image-meta-0.2.1.tgz#3a9eb9f0bfd2f767ca2b0720623c2e03742aa29f"
47384758
integrity sha512-K6acvFaelNxx8wc2VjbIzXKDVB0Khs0QT35U6NkGfTdCmjLNcO2945m7RFNR9/RPVFm48hq7QPzK8uGH18HCGw==
47394759

4760+
image-size@^1.2.0:
4761+
version "1.2.0"
4762+
resolved "https://registry.yarnpkg.com/image-size/-/image-size-1.2.0.tgz#312af27a2ff4ff58595ad00b9344dd684c910df6"
4763+
integrity sha512-4S8fwbO6w3GeCVN6OPtA9I5IGKkcDMPcKndtUlpJuCwu7JLjtj7JZpwqLuyY2nrmQT3AWsCJLSKPsc2mPBSl3w==
4764+
dependencies:
4765+
queue "6.0.2"
4766+
47404767
import-fresh@^3.2.1:
47414768
version "3.3.0"
47424769
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
@@ -6280,6 +6307,24 @@ nuxt-component-meta@^0.10.0:
62806307
ufo "^1.5.4"
62816308
vue-component-meta "^2.2.0"
62826309

6310+
6311+
version "6.0.8"
6312+
resolved "https://registry.yarnpkg.com/nuxt-seo-utils/-/nuxt-seo-utils-6.0.8.tgz#b204a724029acc5b6efe099dd36638a1e3b083c7"
6313+
integrity sha512-Gx2zqLpHBU5KZM8CZ91V/JxCHXR4sRlRwoPtRfWKqxPH+a35abe2l4YaIBz8YOwL23t9Yo3ww1+zUleLUExYMA==
6314+
dependencies:
6315+
"@nuxt/kit" "^3.15.1"
6316+
"@unhead/addons" "^1.11.16"
6317+
"@unhead/schema" "^1.11.16"
6318+
defu "^6.1.4"
6319+
escape-string-regexp "^5.0.0"
6320+
fast-glob "^3.3.3"
6321+
image-size "^1.2.0"
6322+
mlly "^1.7.4"
6323+
nuxt-site-config "^3.0.6"
6324+
pathe "^2.0.1"
6325+
scule "^1.3.0"
6326+
ufo "^1.5.4"
6327+
62836328
62846329
version "3.0.6"
62856330
resolved "https://registry.yarnpkg.com/nuxt-site-config-kit/-/nuxt-site-config-kit-3.0.6.tgz#dd753cfc6b89596c4a2a22347c42cc07962471c3"
@@ -7152,6 +7197,13 @@ queue-tick@^1.0.1:
71527197
resolved "https://registry.yarnpkg.com/queue-tick/-/queue-tick-1.0.1.tgz#f6f07ac82c1fd60f82e098b417a80e52f1f4c142"
71537198
integrity sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==
71547199

7200+
7201+
version "6.0.2"
7202+
resolved "https://registry.yarnpkg.com/queue/-/queue-6.0.2.tgz#b91525283e2315c7553d2efa18d83e76432fed65"
7203+
integrity sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==
7204+
dependencies:
7205+
inherits "~2.0.3"
7206+
71557207
radix-vue@^1.9.12:
71567208
version "1.9.12"
71577209
resolved "https://registry.yarnpkg.com/radix-vue/-/radix-vue-1.9.12.tgz#2762e7c47747d6a246b0e8cac0c6c794ea7f5c6a"
@@ -8592,6 +8644,26 @@ universalify@^2.0.0:
85928644
resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d"
85938645
integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==
85948646

8647+
unplugin-ast@^0.13.1:
8648+
version "0.13.2"
8649+
resolved "https://registry.yarnpkg.com/unplugin-ast/-/unplugin-ast-0.13.2.tgz#9e61179ee117cf64f3d4e6fe06b00f910dc40ded"
8650+
integrity sha512-WXr7/8RKzeT+VFWrnHUoodWtd/w6xGWJzxXGEDI011ngxx2hjpaCQZqeVWiE/af+iCoAnOTvZH/fy42YynxUYQ==
8651+
dependencies:
8652+
"@antfu/utils" "^8.1.0"
8653+
"@babel/generator" "^7.26.5"
8654+
ast-kit "^1.4.0"
8655+
magic-string-ast "^0.7.0"
8656+
unplugin "^2.1.2"
8657+
unplugin-utils "^0.2.0"
8658+
8659+
unplugin-utils@^0.2.0:
8660+
version "0.2.3"
8661+
resolved "https://registry.yarnpkg.com/unplugin-utils/-/unplugin-utils-0.2.3.tgz#3e30a2c58d0a4e510431990aa1156b0c43d6b6de"
8662+
integrity sha512-unB2e2ogZwEoMw/X0Gq1vj2jaRKLmTh9wcSEJggESPllcrZI68uO7B8ykixbXqsSwG8r9T7qaHZudXIC/3qvhw==
8663+
dependencies:
8664+
pathe "^2.0.2"
8665+
picomatch "^4.0.2"
8666+
85958667
unplugin-vue-router@^0.10.9:
85968668
version "0.10.9"
85978669
resolved "https://registry.yarnpkg.com/unplugin-vue-router/-/unplugin-vue-router-0.10.9.tgz#7a806275214993f6e67f666430fa637bb6e84181"

0 commit comments

Comments
 (0)