This WordPress plugin easily adds your favorite GitHub projects as an Embed Block to the Gutenberg Block Editor.
Forked & Modified version of the "embed-block-for-github"
- Create your personal GitHub access token.
- Download this repository as a .zip file.
- Install the plugin and activate it in WordPress.
- Insert the "GitHub Repo Block".
- Go to the editor and choose GitHub Repo block.
- Add the URL of the repository & your GitHub token and see the magic happen.
- Embed your GitHub Repositories in your Post content.
- Unfortunately, the original version has some issues which needed to be fixed. Therefore, the plugin has been modified regarding the points shown below.
FIX API RATE LIMIT EXCEEDED & REMOVE DARKMODE
- The issue comes from the way how GitHub counts requests for rate limit. For unauthorized requests, it is limited by IP address as shown in the picture below.
- Additionally, I don't see the need for having a "dark mode" option in the plugin.
FIX LINKS NOT CLICKABLE & REMOVE AVATAR
- Links on the card are not clickable!
- Moreover, I believe that an avatar shown on the card is a nice gimmick but not essential.
FIX API RATE LIMIT EXCEEDED , REMOVE DARKMODE & REMOVE AVATAR
- Use authorized API requests at the GitHub API through personalized bearer access tokens. (see: WordPress Auth & GitHub rate limit)
- In Addition, the plugin's inspector needed an extra text field to enter the personalized access token.
MAKE CLICKABLE LINKS
- Issue was already solved in a pull request but never merged to the master branch.
Works fine. Potential for enhancements - Open for contributions.
- Kian Wasabi