如何给自己的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/checkout@v2.3.4
      - 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/add-and-commit@v7.2.1
        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/

相关推荐
之歆11 分钟前
Day21_电商详情页核心技术实战:从LESS预处理到复杂交互实现
开发语言·前端·javascript·css·交互·less
海鸥两三21 分钟前
基于 Vue 3 + 高德地图的网格规划系统实战(有源码)
前端·javascript·vue.js
Yunzenn23 分钟前
深度分析字节最新研究cola-DLM 第 10 章:从文本到多模态 —— 统一生成的未来
github
Ajie'Blog26 分钟前
AI 编程工具怎么选:Claude Code、Cursor、GitHub Copilot 与 Ollama 指南
人工智能·github·copilot
丷丩30 分钟前
MapLibre GL JS第11课:获取鼠标指针坐标
前端·javascript·gis·地图·mapbox·maplibre gl js
代码AI弗森38 分钟前
前端周刊第 467 期[特殊字符] 本期精选目录
前端
随便的名字38 分钟前
前端路由的底层逻辑:URL 中 # 和 ? 的区别与关系详解
前端
kongba00740 分钟前
ttyd Web终端安装指南(OpenCloudOS 9)
linux·前端
zhoumeina9941 分钟前
前端串行合成流程 + 每张图上传接口
前端·状态模式
风骏时光牛马42 分钟前
Swift 基于MVVM架构实现完整列表数据展示与交互功能实战案例
前端