https://github.com/michaelcontento/credly2hugo-action
Import certificates from Credly into your Hugo website
https://github.com/michaelcontento/credly2hugo-action
credly hugo hugo-blog static-site-generator
Last synced: 5 months ago
JSON representation
Import certificates from Credly into your Hugo website
- Host: GitHub
- URL: https://github.com/michaelcontento/credly2hugo-action
- Owner: michaelcontento
- License: mit
- Created: 2022-10-03T19:23:38.000Z (almost 4 years ago)
- Default Branch: v1
- Last Pushed: 2026-02-09T17:19:09.000Z (5 months ago)
- Last Synced: 2026-02-09T20:56:12.668Z (5 months ago)
- Topics: credly, hugo, hugo-blog, static-site-generator
- Language: Shell
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# credly2hugo v1
This action will download a given users certificates and badges from [Credly] and stores them within the current repository as **(a)** JSON [Hugo Data File][] and **(b)** badges as image raw image file.
## Usage
See [action.yaml](action.yaml), but basically:
```yaml
- uses: michaelcontento/credly2hugo-action@v1
with:
# The user of whom we want to grab the infos
name: michael-contento
```
By default this action will store the following files:
- JSON file containting informations about all available certifications
- `data/CredlyBadges.json`
- The raw JSON file retrieved from Credly with all infos
- `data/CredlyBadgesRaw.json`
- A folder full of images
- `assets/images/CredlyBadges/*`
## Custom paths
If you want to change the path where the JSON file and/or the images are stored, use `datafile` and/or `imagedir` - like:
```yaml
- uses: michaelcontento/credly2hugo-action@v1
with:
name: michael-contento
datafile: CustomFile.json
# Final path: ./data/CustomFile.json
# Final path raw: ./data/CustomFileRaw.json
imagedir: foo/bar
# Final path: ./assets/foo/bar/*
```
[Credly]: https://info.credly.com/
[Hugo Data File]: https://gohugo.io/templates/data-templates/