Add the Fork Me on Github Ribbon to any Gatsby site.
$ npm install --save gatsby-plugin-github-ribbon
# or
$ yarn add gatsby-plugin-github-ribbon
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-github-ribbon`,
options: {
project: `https://github.com/example/project`,
color: `red`, //`red`, `green`, `darkblue`, `orange`, `gray`, or `white`.
position: `left`, //`left` or `right`
},
},
];
Position can be: left
or right
.
Color can be: red
, green
, darkblue
, orange
, gray
, or white
.