Theme configuration

social()#

Social links, currently only usable in the content footer.

Example#

theme.config.tsx
export default defineTheme({
  contentFooter: {
    socials: [
      social.twitter("https://x.com"), // Twitter and X both show the X logo
      social.x("https://x.com"),
      social.discord("https://discord.gg"),
      social.github("https://github.com"),
      social.slack("https://slack.com"),
      social.mastodon("https://joinmastodon.org/"),
    ],
  },
})

Reference#

function social.twitter(link); // Twitter and X both show the X logo
function social.x(link);
function social.discord(link);
function social.github(link);
function social.slack(link);
function social.mastodon(link);

linkstringrequired

The link of the social media account.

Reference - Options#

function social(options);

optionsSocialOptions

The options for this group.