1.0.0 β’ Published 3 years ago
gatsby-source-badgr v1.0.0
gatsby-source-badgr
A Gatsby source plugin for Badgr badges.
This plugin is great for a personal portfolio websites where you want to show off certification badges that you have earned.
Installation
yarn add gatsby-source-badgr gatsby-plugin-image gatsby-source-filesystem
gatsby-plugin-image
is recommended for loading images efficientlygatsby-source-filesystem
is needed for using badge images
Configuration
You should pass in your password as an environment variable to prevent accidentally committing it to source control.
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: 'gatsby-source-badgr',
options: {
endpoint: 'https://api.eu.badgr.io',
username: 'john.doe@example.com',
password: process.env.BADGR_PASSWORD
}
}
]
}
Endpoints
Region | Endpoint |
---|---|
πΊπΈ United States | https://api.badgr.io |
πͺπΊ Europe | https://api.eu.badgr.io |
π¨π¦ Canada | https://api.ca.badgr.io |
π¦πΊ Australia | https://api.au.badgr.io |
1.0.0
3 years ago