Skip to content

Commit

Permalink
fix: set correct default for socials (#94)
Browse files Browse the repository at this point in the history
* chore: update pnpm lock

* fix: set correct social defaults
  • Loading branch information
Atinux committed Jan 9, 2023
1 parent 241fb8d commit d859414
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 44 deletions.
10 changes: 10 additions & 0 deletions .docs/app.config.ts
@@ -0,0 +1,10 @@
export default defineAppConfig({
alpine: {
socials: {
twitter: 'nuxtstudio',
instagram: 'wearenuxt',
github: 'nuxt-themes/alpine',
youtube: '@nuxtlabs'
}
}
})
13 changes: 6 additions & 7 deletions app.config.ts
Expand Up @@ -27,13 +27,12 @@ export default defineAppConfig({
message: 'Follow me on'
},
socials: {
twitter: 'nuxtlabs',
instagram: 'atinuxt',
linkedin: {
icon: 'uil:linkedin',
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/nuxtlabs'
}
twitter: '',
instagram: '',
github: '',
facebook: '',
medium: '',
youtube: ''
},
form: {
successMessage: 'Message sent. Thank you!'
Expand Down
2 changes: 1 addition & 1 deletion components/AppFooter.vue
Expand Up @@ -19,7 +19,7 @@ const alpine = useAppConfig().alpine
<p v-if="alpine.footer?.message" class="message">
{{ alpine.footer.message }}
</p>
<div class="icons">
<div v-if="alpine.socials && Object.entries(alpine.socials)" class="social">
<SocialIcons :socials="alpine.socials" />
Expand Down
36 changes: 25 additions & 11 deletions nuxt.schema.ts
Expand Up @@ -116,23 +116,37 @@ export default defineNuxtConfigSchema({
* @example 'nuxt_js'
* @studio-icon simple-icons:twitter
*/
twitter: 'nuxtlabs',
twitter: '',
/**
* Instagram handle
* @example https://www.instagram.com/atinuxt
* @example 'wearenuxt'
* @studio-icon simple-icons:instagram
*/
instagram: 'atinuxt',
instagram: '',
/**
* LinkedIn page url.
* @example https://www.linkedin.com/company/nuxtlabs
* @studio-icon simple-icons:instagram
* GitHub path
* @example 'nuxt-themes/alpine'
* @studio-icon simple-icons:github
*/
linkedin: {
icon: 'uil:linkedin',
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/nuxtlabs'
}
github: '',
/**
* GitHub path
* @example 'nuxt'
* @studio-icon simple-icons:facebook
*/
facebook: '',
/**
* Medium handle
* @example 'nuxt'
* @studio-icon simple-icons:medium
*/
medium: '',
/**
* Youtube handle
* @example '@nuxtlabs'
* @studio-icon simple-icons:youtube
*/
youtube: ''
},
/**
* Contact form configuration.
Expand Down
54 changes: 29 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit d859414

@vercel
Copy link

@vercel vercel bot commented on d859414 Jan 9, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.