I'd like to be able to use the theme and also have the Facebook social icon as standard, and reading on to #20 it'd be good to have one of the major social platforms available to use.
How
Add the link to settings.json - otherwise this will not show if you add it to the socialProfiles variable.
Add IconFacebook as an import and in the case statement in gatsby-theme-portfolio-minimal/src/components/Icon/index.tsx
Add facebook in the const list in gatsby-theme-portfolio-minimal/src/components/SocialProfiles/configuration.ts
Add Facebook in the enum in gatsby-theme-portfolio-minimal/src/components/SocialProfiles/index.tsx
Set facebook as a string in gatsby-theme-portfolio-minimal/src/gatsby/node/createSchemaCustomization.js
Add facebook to the graphql query in gatsby-theme-portfolio-minimal/src/hooks/useSiteMetadata.tsx
Add the SVG to gatsby-theme-portfolio-minimal\src\components\Icon\Icon<iconname>.tsx
SVG
To get the SVG to work, I used a web SVG editor, setting the height at 48x48 and letting this provide the SVG.
What?
Adding Facebook as an available social icon.
Why
I'd like to be able to use the theme and also have the Facebook social icon as standard, and reading on to #20 it'd be good to have one of the major social platforms available to use.
How
settings.json
- otherwise this will not show if you add it to thesocialProfiles
variable.IconFacebook
as an import and in the case statement ingatsby-theme-portfolio-minimal/src/components/Icon/index.tsx
facebook
in the const list ingatsby-theme-portfolio-minimal/src/components/SocialProfiles/configuration.ts
Facebook
in the enum ingatsby-theme-portfolio-minimal/src/components/SocialProfiles/index.tsx
facebook
as a string ingatsby-theme-portfolio-minimal/src/gatsby/node/createSchemaCustomization.js
facebook
to the graphql query ingatsby-theme-portfolio-minimal/src/hooks/useSiteMetadata.tsx
gatsby-theme-portfolio-minimal\src\components\Icon\Icon<iconname>.tsx
SVG
To get the SVG to work, I used a web SVG editor, setting the height at 48x48 and letting this provide the SVG.