GitHub Issues Widget
A bit of GitHub API v3,
GitHub Flavored Markdown,
a soupcon of data-*
attributes and you get
github issue powered blog comments.
As simple as it could be.
<div data-repo="mklabs/gh-issues-widget" data-id="hello" data-template="#tmpl-issues"></div>
The only required option is data-repo
.
- data-repo: in the form of
username/repository
- data-id: used to filter related issue. If not provided, the widget will do a best-guest based on
location.pathname
. - data-template: selector of inline template to use and overidde the default one.