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 social icon #1014

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default defineAppConfig({
| `socials.instagram` | `string` | | The account to use on Instagram links |
| `socials.facebook` | `string` | | The account to use on Facebook links |
| `socials.medium` | `string` | | The account to use on Medium links |
| `socials.mastodon` | `string` | | The account to use on Mastodon links |
| `socials.[social]` | `object` | | Override social or display custom one |
| `socials.[social].label` | `string` | | A label to use for the social |
| `socials.[social].icon` | `string` | | A icon to use for the social |
Expand Down
2 changes: 1 addition & 1 deletion components/app/AppSocialIcons.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
const socials = ['twitter', 'facebook', 'instagram', 'tiktok', 'youtube', 'github', 'medium']
const socials = ['twitter', 'facebook', 'instagram', 'tiktok', 'youtube', 'github', 'medium', 'mastodon']

const { config } = useDocus()

Expand Down
8 changes: 7 additions & 1 deletion nuxt.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ export default defineNuxtSchema({
* @example https://medium.com/nuxt
* @studioIcon simple-icons:medium
*/
medium: ''
medium: '',
/**
* Mastodon page url
* @example https://elk.zone/fosstodon.org/@[email protected]
* @studioIcon simple-icons:mastodon
*/
mastodon: ''
},

/**
Expand Down