Github
卡片
单张卡片
表格卡片
1 2 3 4
| | {% ghcard iiiota %} | {% ghcard iiiota, theme=vue %} | | -- | -- | | {% ghcard iiiota, theme=buefy %} | {% ghcard iiiota, theme=solarized-light %} | | {% ghcard iiiota, theme=onedark %} | {% ghcard iiiota, theme=solarized-dark %} |
|
项目卡片
1 2
| {% ghcard iiiota/hexo-theme-bamboo %} {% ghcard iiiota/hexo-theme-bamboo %}
|
issues-timeline
会去拿到某个repo仓库的issue内容,用 timeline 标签的形式显示。
github
1
| {% issues timeline | api=https://api.github.com/repos/USERNAME/REPO/issues?sort=updated&state=closed&page=1&per_page=10 %}
|
查看Github issues
gitee
1
| {% issues timeline | api=https://gitee.com/api/v5/repos/y_project/RuoYi/issues %}
|
查看Gitee issues
issue api
1 2 3 4
| {% linkgroup %} {% link github的开放api, https://docs.github.com/cn/rest/overview/resources-in-the-rest-api, https://cdn.pixabay.com/photo/2018/12/05/13/41/panda-3857754__340.jpg %} {% link gitee的开放api, https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoIssues, https://cdn.pixabay.com/photo/2018/12/05/13/41/panda-3857754__340.jpg %} {% endlinkgroup %}
|
issues-sites
会去拿到某个repo仓库的issue内容,用sites标签的形式显示,可用作友链功能,都适用于 github gitee 。
issue需要包含数据:
1 2 3 4 5 6 7
| { "title": "", "url": "", "avatar": "", "screenshot": "", "description": "" }
|
github
1
| {% issues sites | api=https://api.github.com/repos/yuang01/friends/issues?sort=updated&state=open&page=1&per_page=4&labels=active %}
|
gitee
1
| {% issues sites | api=https://gitee.com/api/v5/repos/yuang01/friends/issues?sort=updated&state=open&page=1&per_page=4&labels=active %}
|
分组显示
1
| {% issues sites | api=https://api.github.com/repos/yuang01/examples/issues?sort=updated&state=open&page=1&per_page=100 | group=version:版本:v3.0,版本:v2.0 %}
|