diff --git a/theme/src/client/components/Nav/NavBarExtra.vue b/theme/src/client/components/Nav/NavBarExtra.vue index 5a49bca9..f0f20022 100644 --- a/theme/src/client/components/Nav/NavBarExtra.vue +++ b/theme/src/client/components/Nav/NavBarExtra.vue @@ -13,6 +13,16 @@ const { localeLinks, currentLang } = useLangs({ correspondingLink: true }) const hasExtraContent = computed( () => theme.value.appearance || theme.value.social, ) + +const social = computed(() => { + const includes = theme.value.navbarSocialInclude ?? [] + if (!includes.length) + return theme.value.social + + return theme.value.social?.filter( + ({ icon }) => typeof icon === 'string' && includes.includes(icon), + ) +})