Customizing Social Links
Files: src/config/social.json · Skill level: Beginner
The social links displayed across all pages are managed through the social.json file. By modifying this file, your changes will automatically reflect on all pages. It looks like this:
{ "main": [ { "enable": true, "label": "Facebook", "lucideIcon": "facebook", "url": "https://www.facebook.com", "isForShare": true, "isForShareProject": true }, { "enable": true, "label": "Linkedin", "lucideIcon": "linkedin", "url": "https://www.linkedin.com", "isForShare": false, "isForShareProject": true } ]}enable→ Shows or hides the link.label→ The name of the platform.Footer.astroshows it as text, and the icons inFooterTwo.astroand the top bars come from it, so use the platform’s name, such asFacebook,Twitter,Linkedin,Instagram,Dribbble,Mail, orLink.lucideIcon→ An icon name kept in the file. The icons come fromlabel, so changing this doesn’t change them. The Sanity edition’s form doesn’t have this field.url→ The address of your profile. InFooterTwo.astroand the top bars, a link with no address doesn’t show.isForShare→ Offers this platform in the share links on blog posts.isForShareProject→ Offers this platform in the share links on case studies.
The sample addresses are the platforms’ home pages, so replace them with your own profiles. TopbarTwo.astro shows only Facebook, Twitter, and Linkedin.