diff --git a/.changeset/fluffy-lines-type.md b/.changeset/fluffy-lines-type.md new file mode 100644 index 000000000..b7985bf74 --- /dev/null +++ b/.changeset/fluffy-lines-type.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Support social links diff --git a/packages/gitbook/src/components/Footer/Footer.tsx b/packages/gitbook/src/components/Footer/Footer.tsx index e909bba3d..ab551ec54 100644 --- a/packages/gitbook/src/components/Footer/Footer.tsx +++ b/packages/gitbook/src/components/Footer/Footer.tsx @@ -8,6 +8,7 @@ import { tcls } from '@/lib/tailwind'; import { ThemeToggler } from '../ThemeToggler'; import { CONTAINER_STYLE } from '../layout'; import { FooterLinksGroup } from './FooterLinksGroup'; +import { SocialLink } from './SocialLink'; const FOOTER_COLUMNS = 4; @@ -23,6 +24,8 @@ export function Footer(props: { context: GitBookSiteContext }) { const mobileOnly = !hasLogo && !hasGroups && !hasCopyright && hasThemeToggle; + const socialLinks = customization.socialAccounts.filter((account) => account.display?.footer); + return (