Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mastodon #85

Merged
merged 5 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .demo/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default defineAppConfig({
cover: '/cover.jpg',
socials: {
twitter: 'Atinux',
github: 'Atinux/content-wind'
github: 'Atinux/content-wind',
mastodon: '@[email protected]'
}
})
2 changes: 2 additions & 0 deletions .demo/content/1.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ interface AppConfigInput {
socials?: {
twitter?: string
github?: string
mastodon?: string
}
}
```
Expand All @@ -104,6 +105,7 @@ export default defineAppConfig({
socials: {
twitter: 'Atinux',
github: 'Atinux/content-wind'
mastodon: '@[email protected]'
atinux marked this conversation as resolved.
Show resolved Hide resolved
}
})
```
Expand Down
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@
"files.associations": {
"*.css": "postcss"
},
"editor.formatOnSave": false
"editor.formatOnSave": false,
"workbench.colorCustomizations": {
"activityBar.background": "#14340F",
"titleBar.activeBackground": "#1C4915",
"titleBar.activeForeground": "#F5FCF3"
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now sure about those changes

atinux marked this conversation as resolved.
Show resolved Hide resolved
}
3 changes: 2 additions & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export default defineAppConfig({
socials: {
twitter: '',
github: ''
github: '',
mastodon: '',
},
nuxtIcon: {
aliases: {
Expand Down
1 change: 1 addition & 0 deletions components/AppNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const appConfig = useAppConfig()
<div class="space-x-3 transition text-gray-500">
<a v-if="appConfig.socials?.twitter" :href="`https://twitter.com/${appConfig.socials?.twitter}`" title="Twitter" class="dark:text-gray-100 hover:text-gray-700 dark:hover:text-gray-300"><Icon name="fa-brands:twitter" class="w-5 h-5" /></a>
<a v-if="appConfig.socials?.github" :href="`https://github.com/${appConfig.socials?.github}`" title="GitHub" class="dark:text-gray-100 hover:text-gray-700 dark:hover:text-gray-300"><Icon name="fa-brands:github" class="w-5 h-5" /></a>
<a v-if="appConfig.socials?.mastodon" :href="`https://elk.zone/${appConfig.socials?.mastodon}`" title="Mastodon" class="dark:text-gray-100 hover:text-gray-700 dark:hover:text-gray-300"><Icon name="fa-brands:mastodon" class="w-5 h-5" /></a>
<ColorModeSwitch class="dark:text-gray-100 hover:text-gray-700 dark:hover:text-gray-300" />
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion nuxt.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ export default defineNuxtSchema({
* @example 'nuxt/framework'
* @studioIcon simple-icons:github
* */
github: ''
github: '',
/**
* Mastodon handle
* @example '@[email protected]'
* @studioIcon simple-icons:mastodon
* */
mastodon: ''
}
}
})