📝 Update a pinned gist to show your latest HackMD notes.
This project is inspired by medium-stat-box and youtube-box
For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
This project dymamically updates a pinned gist to show your latest HackMD notes publicly published.
The gist includes a list of the notes' titles, with a separate Markdown file that provides clickable links to each article. See an example here.
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gistscope and copy it. (https://github.com/settings/tokens/new) - Create a HackMD API token following this instruction.
- Fork this repo
- Go to the fork's
Settings>Secrets and variables>Actionsand add new repository secret for each environment secret.- GH_TOKEN: The GitHub access token generated above.
- HACKMD_API_KEY: The HackMD API token generated above.
- GIST_ID: The ID portion of your gist url, ex:
https://gist.github.com/<github_username>/6d5f84419863089a167387da62dd7081.
- Pin your gist
- The github aciton cron job will run once a week (every Sunday). Push the repo can also trigger the action.
