Elegant social media badges to spice up your markdown at your disposal.
Getting an icon in markdown:
![twitter](https://socialize-md.vercel.app/api/badge/twitter)
Linking social to icon in markdown:
[![twitter](https://socialize-md.vercel.app/api/badge/twitter)](https://twitter.com/your_handle)
To add a new icon you must follow a couple of steps:
- Fork this repo and create a new branch.
- Add your icon template to the
/assets/server/icons
directory.- In order to properly align icon create a 20x20 pixel box and align 10-12px wide icon in the center both vertically and horizontally.
- Icons must be between 10-12 pixels.
- Icons must be white (#fff).
- Strip all svg properties except for
path
.
- Import and add your icon to the
i
object in/assets/server/icons/index.ts
. - Navigate to
pages/api/badge/[ico].ts
and add your icon to the switch statement with the desired background color. - Create a pull request and wait for review!
Like this project? Support me with ethereum: 0xD4c6325E42fac0625B25C0d4DB40823870986609