Embed GitHub Cards using widget.js
masterYou can embed GitHub profile or repository cards into your website by including a div with the github-card class and the widget.js script. The script automatically detects the configuration from the div's data attributes and creates the necessary embed iframes.
<!-- Example of user card -->
<div class="github-card" data-user="lepture"></div>
<script src="https://cdn.jsdelivr.net/gh/lepture/github-cards@latest/jsdelivr/widget.js"></script>
<!-- Example of repo card -->
<div class="github-card" data-user="lepture" data-repo="github-cards"></div>
<script src="https://cdn.jsdelivr.net/gh/lepture/github-cards@latest/jsdelivr/widget.js"></script>