From 365adb1ab394db76df9409fbd87482e4767e0e8d Mon Sep 17 00:00:00 2001 From: Klein Petr Date: Wed, 25 Oct 2023 13:21:06 +0200 Subject: [PATCH] feat: add mastodon (#85) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add mastodon * fix: change demo mastodon handle * Update .demo/app.config.ts * Update .demo/content/1.index.md * Update .vscode/settings.json --------- Co-authored-by: Sébastien Chopin --- .demo/app.config.ts | 3 ++- .demo/content/1.index.md | 2 ++ app.config.ts | 3 ++- components/AppNavbar.vue | 1 + nuxt.schema.ts | 8 +++++++- 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.demo/app.config.ts b/.demo/app.config.ts index d22b3f8..e7cbc86 100644 --- a/.demo/app.config.ts +++ b/.demo/app.config.ts @@ -3,6 +3,7 @@ export default defineAppConfig({ cover: '/cover.jpg', socials: { twitter: 'Atinux', - github: 'Atinux/content-wind' + github: 'Atinux/content-wind', + mastodon: '@atinux@webtoo.ls' } }) diff --git a/.demo/content/1.index.md b/.demo/content/1.index.md index d7fd080..be62c64 100644 --- a/.demo/content/1.index.md +++ b/.demo/content/1.index.md @@ -93,6 +93,7 @@ interface AppConfigInput { socials?: { twitter?: string github?: string + mastodon?: string } } ``` @@ -104,6 +105,7 @@ export default defineAppConfig({ socials: { twitter: 'Atinux', github: 'Atinux/content-wind' + mastodon: '@atinux@webtoo.ls' } }) ``` diff --git a/app.config.ts b/app.config.ts index ca9a820..1fd90ad 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,7 +1,8 @@ export default defineAppConfig({ socials: { twitter: '', - github: '' + github: '', + mastodon: '', }, nuxtIcon: { aliases: { diff --git a/components/AppNavbar.vue b/components/AppNavbar.vue index 2f41af7..fc95b07 100644 --- a/components/AppNavbar.vue +++ b/components/AppNavbar.vue @@ -21,6 +21,7 @@ const appConfig = useAppConfig()
+
diff --git a/nuxt.schema.ts b/nuxt.schema.ts index f6c509b..732993e 100644 --- a/nuxt.schema.ts +++ b/nuxt.schema.ts @@ -18,7 +18,13 @@ export default defineNuxtSchema({ * @example 'nuxt/framework' * @studioIcon simple-icons:github * */ - github: '' + github: '', + /** + * Mastodon handle + * @example '@nuxt@webtoo.ls' + * @studioIcon simple-icons:mastodon + * */ + mastodon: '' } } })