qinyi素材网
当前位置: 首页 > WEB教程 > 使用GitHub 统计卡片美化你的 GitHub profile

使用GitHub 统计卡片美化你的 GitHub profile

  时间: 2021-10-22   阅读:1.53k
简要教程

简单的使用一个地址制作属于自己的GitHub 统计卡片和repo 卡片美化你的 GitHub profile,让自己的github主页更加个性化。

使用方法

将这行代码复制到你的 markdown 文件中,就是如此简单!

更改 ?username= 的值为你的 GitHub 用户名。

[![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra)](https://github.com/anuraghazra/github-readme-stats)

注: 等级基于用户的统计信息计算得出,详见 src/calculateRank.js

下面就用我的 GitHub 统计卡片做演示

Anurag's GitHub stats

隐藏指定统计

想要隐藏指定统计信息,你可以调用参数 ?hide=,其值用 , 分隔。

选项:&hide=stars,commits,prs,issues,contribs

![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs)

这是隐藏了contribsprs的展示
Anurag's GitHub stats

选择主题

你可以通过现有的主题进行卡片个性化,省去手动自定义的麻烦。

通过调用 ?theme=THEME_NAME 参数,像这样:

![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical)

所有现有主题

dark, radical, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, highcontrast, dracula

列如dark主题加上显示图标&show_icons=true
Anurag's GitHub stats

自定义 repo 卡片

[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats)](https://github.com/anuraghazra/github-readme-stats)

下面是我的repo 卡片演示

Readme Card

更多

想要了解更多关于GitHub 统计卡片的操作,可以查看官方文档,制作一个自己独特的GitHub统计卡片。

上一篇: 下一篇: