如何给自己的GitHub装扮个性化首页

我的主页

如何配置

  • 需要创建一个仓库,仓库名要跟GitHub的用户名一样,我的已经创建过了
  • 喜欢我的主页可以直接fork然后在自己的仓库修改,如果想自己装扮直接看下一步

地址:github.com/linweiqian

开始装扮

下面展示仓库状态统计的设置,需要把username修改成自己的GitHub名字。通过给url增加参数的形式,可以给svg设置theme,也可以采用默认的(白底);通过layout设置外观布局

仓库状态统计

在您的自述文件中获取动态生成的 GitHub 统计信息 --> 传送门

ini 复制代码
![all-smile's GitHub stats](https://github-readme-stats.vercel.app/api?username=all-smile&show_icons=true&theme=tokyonight)

主页访问量统计

less 复制代码
![Visitor Count](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/4ac595079b3e495c81bbd930d93f5861~tplv-k3u1fbpfcp-zoom-1.image)

常用语言占比统计

在您的自述文件中添加使用编程语言对比统计图 --> 传送门

ini 复制代码
![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=all-smile&layout=compact&theme=tokyonight)

Metrics(GitHub 信息统计)

获得类似上图的 GitHub 数据统计,需要用到一个在线工具「Metrics」,打开网站之后,在左侧输入你的 GitHub ID,稍等一会,就会返回右侧所有和你相关的数据。

xml 复制代码
<div align="center"> <img src="https://metrics.lecoq.io/sun0225SUN?template=classic&config.timezone=Asia%2FShanghai"> </div>

Github Profile Trophy(GitHub 资料奖杯)

添加奖杯信息--> 传送门

xml 复制代码
<div align="center"> <img src="https://github-profile-trophy.vercel.app/?username=sun0225SUN" /> </div>

Shields(GitHub 徽章)

为你的开源项目生成高质量小徽章图标,直接复制链接使用。 --> 传送门

xml 复制代码
<span > <img src="https://img.shields.io/badge/-HTML5-E34F26?style=flat-square&logo=html5&logoColor=white" /> <img src="https://img.shields.io/badge/-CSS3-1572B6?style=flat-square&logo=css3" /> <img src="https://img.shields.io/badge/-JavaScript-oringe?style=flat-square&logo=javascript" /> </span>

Visitor Badge(GitHub 访客徽章)

这个徽章会实时改变,记录此页面被访问的次数。-->传送门

xml 复制代码
<div align="center"> <img src="https://visitor-badge.glitch.me/badge?page_id=linweiqian" /> </div>

GitHub Readme Activity Graph (GitHub 活动统计图)

动态生成的活动图,用于显示您过去 31 天的 GitHub 活动。 --> 传送门

xml 复制代码
<div align="center"> <img src="https://activity-graph.herokuapp.com/graph?username=linweiqian&theme=xcode" /> </div>

GitHub streak(GitHub 连续打卡)

在 README 中展示您连续提交代码的次数。 --> 传送门

xml 复制代码
<div align="center"> <img src="https://github-readme-streak-stats.herokuapp.com/?user=sun0225SUN" /> </div>

社交统计

在 README 中展示你在一些流行的网站的数据。 --> 传送门

xml 复制代码
<div align="center"> <img src="https://stats.justsong.cn/api/csdn?id=weixin_50915462"> </div>

打字特效

循环打字的效果,很炫酷,--> 传送门

css 复制代码
<h1 align="center"> <img src="https://readme-typing-svg.herokuapp.com/?lines=console.log(%22Hello%2C%20World!%22);欢迎来到嚣张农民GitHub首页!&center=true&size=27"></h1>

动态贪吃蛇

首先看配置内容:

css 复制代码
![snake](./assets/github-contribution-grid-snake.svg)

引用了仓库本地的一个svg文件,此文件借助一个GitHub Actinos每天自动生成一次。

yaml 复制代码
name: Generate Snake
on:
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/[email protected]
      - name: Generate Snake
        uses: Platane/snk@master
        id: snake-gif
        with:
          github_user_name: ${{ github.repository_owner }}
          gif_out_path: ./assets/github-contribution-grid-snake.gif
          svg_out_path: ./assets/github-contribution-grid-snake.svg
      - name: Push to GitHub
        uses: EndBug/[email protected]
        with:
          branch: master
          message: "Generate Contribution Snake"

此功能基于如下项目构建:

提交动态折线图

配置内容如下:

ini 复制代码
![](https://activity-graph.herokuapp.com/graph?username=linweiqian&theme=github)

此功能基于如下项目构建:

GitHub Pinned的功能

GitHub Pinned 是一个能够将项目钉在个人主页的功能,效果如下:

但有一个问题,此功能只允许我们添加6个项目钉在这里。

通过如下配置,我们可以将更多自己想要钉住的项目钉在个人主页:

ruby 复制代码
[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=eryajf&repo=ldapctl&show_owner=true&&theme=cobalt)](https://github.com/eryajf/ldapctl)

此功能基于如下项目构建:

自定义模板

profilinator.rishav.dev/

相关推荐
守城小轩12 分钟前
JavaScript vs Python 用于 Web Scraping(2025):终极对比指南
前端·chrome·chrome devtools·指纹浏览器·浏览器开发·超级浏览器
风逸hhh3 小时前
python打卡day29@浙大疏锦行
开发语言·前端·python
LuckyLay3 小时前
Vue百日学习计划Day33-35天详细计划-Gemini版
前端·vue.js·学习
ᖰ・◡・ᖳ3 小时前
JavaScript:PC端特效--缓动动画
开发语言·前端·javascript·css·学习·html5
qianmoQ3 小时前
GitHub 趋势日报 (2025年05月15日)
github
会飞的鱼先生4 小时前
vue2、vue3项目打包生成txt文件-自动记录打包日期:git版本、当前分支、提交人姓名、提交日期、提交描述等信息 和 前端项目的版本号json文件
前端·vue.js·git·json
!win !4 小时前
uni-app项目从0-1基础架构搭建全流程
前端·uni-app
c_zyer5 小时前
使用 nvm 管理 Node.js 和 npm 版本
前端·npm·node.js
布Coder5 小时前
前端 vue + element-ui 框架从 0 - 1 搭建
前端·javascript·vue.js