iT邦幫忙

2025 iThome 鐵人賽

0
自我挑戰組

30天 Git 版本控制實戰筆記系列 第 29

Day 29:GitHub Profile 優化 - 打造亮眼的個人首頁

  • 分享至 

  • xImage
  •  

今日目標
• 建立特殊的 Profile README
• 學習動態內容展示
• 加入統計和徽章
• 打造個人品牌


一、建立 Profile README
什麼是 Profile README?
Profile README 是顯示在你 GitHub 首頁最上方的特殊 README

特點:
✅ 顯示在個人檔案最顯眼位置
✅ 可以加入任何內容(文字、圖片、GIF、徽章)
✅ 支援 Markdown 和 HTML
✅ 第一印象很重要!
建立步驟

1. 建立與你的 username 同名的 repo

例如你的 username 是 john,建立名為 john 的 repo

2. 這個 repo 必須是 Public

3. 在 repo 中建立 README.md

4. 內容會自動顯示在你的 profile

快速開始

假設你的 username 是 john

1. 在 GitHub 建立新 repo

Repository name: john

Public

Add a README file: ✅

2. Clone 到本地

git clone https://github.com/john/john.git
cd john

3. 編輯 README.md

vim README.md

4. 推送

git add README.md
git commit -m "docs: update profile README"
git push

5. 查看效果

前往 https://github.com/john


二、Profile README 範本
範本 1:簡潔專業型

Hi there, I'm [你的名字] 👋

🚀 關於我

我是一位熱愛寫程式的全端工程師,專注於建立優質的 Web 應用。

  • 🔭 目前在做:[專案名稱]
  • 🌱 正在學習:TypeScript, Docker, AWS
  • 👯 想要合作:開源專案
  • 💬 問我關於:React, Node.js, Python
  • 📫 聯絡我:your.email@example.com
  • ⚡ 有趣的事:我喜歡喝咖啡 ☕

🛠️ 技術棧

語言
JavaScript
TypeScript
Python

前端
React
Vue
Tailwind

後端
Node.js
Express
PostgreSQL

📊 GitHub 統計

GitHub Stats

Top Languages

📫 聯絡方式

LinkedIn
Email
Portfolio


💙 歡迎來到我的 GitHub!
範本 2:創意視覺型


👨‍💻 關於我

const developer = {
  name: "你的名字",
  location: "台灣 🇹🇼",
  code: ["JavaScript", "TypeScript", "Python", "Go"],
  technologies: {
    frontEnd: {
      js: ["React", "Next.js", "Vue"],
      css: ["Tailwind", "Sass", "Styled Components"]
    },
    backEnd: {
      js: ["Node.js", "Express", "Nest.js"],
      python: ["Django", "FastAPI"]
    },
    databases: ["MongoDB", "PostgreSQL", "Redis"],
    devOps: ["Docker", "AWS", "GitHub Actions"],
    tools: ["Git", "VS Code", "Figma"]
  },
  currentFocus: "Building awesome web applications",
  funFact: "我相信好的程式碼就像好的笑話 - 不需要解釋"
};
🔥 目前狀態
•	🔭 正在開發:[專案名稱] - 簡短描述
•	🌱 正在學習:Rust 和 Web3
•	👯 尋找合作:開源專案和有趣的想法
•	💬 問我關於:React, Node.js, System Design
•	📫 聯絡我:your.email@example.com
📈 GitHub 統計
<p align="center"> <img src="https://github-readme-stats.vercel.app/api?username=你的username&show_icons=true&theme=tokyonight&hide_border=true" width="48%" /> <img src="https://github-readme-streak-stats.herokuapp.com/?user=你的username&theme=tokyonight&hide_border=true" width="48%" /> </p> <p align="center"> <img src="https://github-readme-stats.vercel.app/api/top-langs/?username=你的username&layout=compact&theme=tokyonight&hide_border=true" /> </p> 
🏆 GitHub 獎杯
<p align="center"> <img src="https://github-profile-trophy.vercel.app/?username=你的username&theme=tokyonight&no-frame=true&row=1&column=6" /> </p> 
📊 本週開發時間
<!--START_SECTION:waka--> <!--END_SECTION:waka--> 
________________________________________
<p align="center"> <img src="https://komarev.com/ghpvc/?username=你的username&color=blueviolet&style=flat-square&label=Profile+Views" /> </p> <p align="center">⭐ 如果喜歡我的專案,給個 Star 吧!</p> ``` 
範本 3:極簡風格
### Hey 👋 I'm [你的名字]

Full-stack developer passionate about building things that matter.

**Currently:**
- 🏢 Working at [Company]
- 🔨 Building [Project]
- 📚 Learning Rust & WebAssembly

**Tech I love:**
`TypeScript` `React` `Node.js` `PostgreSQL` `Docker` `AWS`

**Let's connect:**
[Twitter](https://twitter.com/username) • [LinkedIn](https://linkedin.com/in/username) • [Blog](https://blog.com)

---

![](https://github-readme-stats.vercel.app/api?username=你的username&show_icons=true&theme=minimal)
________________________________________
三、動態內容
1. 打字動畫
![Typing SVG](https://readme-typing-svg.herokuapp.com?font=Fira+Code&pause=1000&color=2E9EF7&width=435&lines=Hi!+I'm+a+Full+Stack+Developer;I+love+Open+Source;Always+learning+new+things)
2. GitHub 統計卡片
# 基本統計
![Stats](https://github-readme-stats.vercel.app/api?username=你的username&show_icons=true&theme=radical)

# 最常用語言
![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=你的username&layout=compact&theme=radical)

# 連續貢獻天數
![Streak](https://github-readme-streak-stats.herokuapp.com/?user=你的username&theme=radical)

# 活動圖表
![Activity Graph](https://github-readme-activity-graph.vercel.app/graph?username=你的username&theme=react-dark)

# 主題選項
# radical, dark, merko, gruvbox, tokyonight, onedark, cobalt, synthwave, 
# highcontrast, dracula, prussian, monokai, vue, vue-dark, shades-of-purple, 
# nightowl, buefy, blue-green, algolia, great-gatsby, darcula, bear, 
# solarized-dark, solarized-light, chartreuse-dark, nord, gotham, 
# material-palenight, graywhite, vision-friendly-dark, ayu-mirage, 
# midnight-purple, calm, flag-india, omni, react, jolly, maroongold, yeblu
3. 獎杯展示
![Trophy](https://github-profile-trophy.vercel.app/?username=你的username&theme=onedark&no-frame=true&row=1)
4. 訪客計數器
![Visitor Count](https://komarev.com/ghpvc/?username=你的username&color=blue&style=flat-square)
5. 最新部落格文章(自動更新)
### 📝 最新文章

<!-- BLOG-POST-LIST:START -->
<!-- BLOG-POST-LIST:END -->
# .github/workflows/blog-post-workflow.yml
name: Latest blog post workflow
on:
  schedule:
    - cron: '0 0 * * *'  # 每天更新
  workflow_dispatch:

jobs:
  update-readme-with-blog:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: gautamkrishnar/blog-post-workflow@master
        with:
          feed_list: "https://your-blog.com/feed.xml"
6. 開發時間統計(Wakatime)
### 📊 本週開發時間

<!--START_SECTION:waka-->
<!--END_SECTION:waka-->
# .github/workflows/waka-readme.yml
name: Waka Readme

on:
  schedule:
    - cron: '0 0 * * *'
  workflow_dispatch:

jobs:
  update-readme:
    runs-on: ubuntu-latest
    steps:
      - uses: athul/waka-readme@master
        with:
          WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
________________________________________
四、技能徽章
常用技術徽章
## 技能

### 語言
![JavaScript](https://img.shields.io/badge/-JavaScript-F7DF1E?style=flat-square&logo=javascript&logoColor=black)
![TypeScript](https://img.shields.io/badge/-TypeScript-3178C6?style=flat-square&logo=typescript&logoColor=white)
![Python](https://img.shields.io/badge/-Python-3776AB?style=flat-square&logo=python&logoColor=white)
![Java](https://img.shields.io/badge/-Java-007396?style=flat-square&logo=java&logoColor=white)
![Go](https://img.shields.io/badge/-Go-00ADD8?style=flat-square&logo=go&logoColor=white)
![Rust](https://img.shields.io/badge/-Rust-000000?style=flat-square&logo=rust&logoColor=white)

### 前端
![React](https://img.shields.io/badge/-React-61DAFB?style=flat-square&logo=react&logoColor=black)
![Next.js](https://img.shields.io/badge/-Next.js-000000?style=flat-square&logo=next.js&logoColor=white)
![Vue.js](https://img.shields.io/badge/-Vue.js-4FC08D?style=flat-square&logo=vue.js&logoColor=white)
![Tailwind CSS](https://img.shields.io/badge/-Tailwind-38B2AC?style=flat-square&logo=tailwind-css&logoColor=white)
![HTML5](https://img.shields.io/badge/-HTML5-E34F26?style=flat-square&logo=html5&logoColor=white)
![CSS3](https://img.shields.io/badge/-CSS3-1572B6?style=flat-square&logo=css3&logoColor=white)

### 後端
![Node.js](https://img.shields.io/badge/-Node.js-339933?style=flat-square&logo=node.js&logoColor=white)
![Express](https://img.shields.io/badge/-Express-000000?style=flat-square&logo=express&logoColor=white)
![NestJS](https://img.shields.io/badge/-NestJS-E0234E?style=flat-square&logo=nestjs&logoColor=white)
![Django](https://img.shields.io/badge/-Django-092E20?style=flat-square&logo=django&logoColor=white)
![FastAPI](https://img.shields.io/badge/-FastAPI-009688?style=flat-square&logo=fastapi&logoColor=white)

### 資料庫
![MongoDB](https://img.shields.io/badge/-MongoDB-47A248?style=flat-square&logo=mongodb&logoColor=white)
![PostgreSQL](https://img.shields.io/badge/-PostgreSQL-336791?style=flat-square&logo=postgresql&logoColor=white)
![MySQL](https://img.shields.io/badge/-MySQL-4479A1?style=flat-square&logo=mysql&logoColor=white)
![Redis](https://img.shields.io/badge/-Redis-DC382D?style=flat-square&logo=redis&logoColor=white)

### DevOps & 工具
![Docker](https://img.shields.io/badge/-Docker-2496ED?style=flat-square&logo=docker&logoColor=white)
![Kubernetes](https://img.shields.io/badge/-Kubernetes-326CE5?style=flat-square&logo=kubernetes&logoColor=white)
![AWS](https://img.shields.io/badge/-AWS-232F3E?style=flat-square&logo=amazon-aws&logoColor=white)
![Git](https://img.shields.io/badge/-Git-F05032?style=flat-square&logo=git&logoColor=white)
![GitHub Actions](https://img.shields.io/badge/-GitHub_Actions-2088FF?style=flat-square&logo=github-actions&logoColor=white)
![VS Code](https://img.shields.io/badge/-VS_Code-007ACC?style=flat-square&logo=visual-studio-code&logoColor=white)
徽章產生器
https://shields.io/
https://simpleicons.org/  (圖示查詢)
https://img.shields.io/badge/

格式:
https://img.shields.io/badge/-文字-顏色?style=樣式&logo=圖示&logoColor=顏色

style 選項:
- flat
- flat-square
- plastic
- for-the-badge
________________________________________
五、進階技巧
1. 自訂 Banner
<!-- 使用 Canva 或 Figma 設計 banner -->
![Header](./header.png)

<!-- 或使用線上產生器 -->
![Header](https://capsule-render.vercel.app/api?type=waving&color=gradient&height=200&section=header&text=Hello%20World&fontSize=80&animation=fadeIn)
2. GitHub Actions 自動更新
# .github/workflows/update-readme.yml
name: Update README

on:
  schedule:
    - cron: '0 0 * * *'  # 每天執行
  workflow_dispatch:

jobs:
  update:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      
      - name: Update README
        run: |
          # 你的更新腳本
          node update-readme.js
      
      - name: Commit changes
        run: |
          git config --local user.email "action@github.com"
          git config --local user.name "GitHub Action"
          git add README.md
          git diff --quiet && git diff --staged --quiet || git commit -m "docs: auto update README"
          git push
3. 互動式元素
<!-- 可點擊的圖片 -->
<a href="https://your-website.com">
  <img src="banner.png" alt="Click me!" />
</a>

<!-- 摺疊內容 -->
<details>
  <summary>點擊展開更多資訊</summary>
  
  這裡是隱藏的內容
  - 詳細資訊 1
  - 詳細資訊 2
</details>

<!-- 表格 -->
| 專案 | 描述 | 技術棧 |
|------|------|--------|
| [專案1](link) | 簡短描述 | React, Node.js |
| [專案2](link) | 簡短描述 | Vue, Python |
________________________________________
六、優化檢查清單
# 內容檢查
□ 有吸引人的開場白
□ 清楚的自我介紹
□ 展示技能和經驗
□ 包含聯絡方式
□ 有視覺元素(徽章、統計)

# 技術檢查
□ 所有連結都有效
□ 圖片正常顯示
□ 統計卡片正確
□ 沒有敏感資訊

# 視覺檢查
□ 排版整齊
□ 配色協調
□ 不會太擁擠
□ 手機版正常

# 個人品牌
□ 風格一致
□ 專業形象
□ 突出特色
□ 真實誠懇
________________________________________
七、常見錯誤
❌ 避免的錯誤:

1. 太長太複雜
   - README 應該簡潔有力
   - 不是越多越好

2. 過時的資訊
   - 定期更新內容
   - 確保連結有效

3. 太多 GIF 和動畫
   - 會影響載入速度
   - 可能分散注意力

4. 誇大不實
   - 不要列出不會的技術
   - 誠實展示實力

5. 忘記更新
   - 加入新技能要更新
   - 專案狀態要更新
________________________________________
八、靈感來源
優秀的 GitHub Profiles:

簡潔風格:
- https://github.com/abhisheknaiidu
- https://github.com/DenverCoder1

創意視覺:
- https://github.com/anuraghazra
- https://github.com/arturssmirnovs

專業型:
- https://github.com/bchiang7
- https://github.com/sindresorhus

互動型:
- https://github.com/DanielHe4rt
- https://github.com/JessicaLim8

工具和資源:
- Awesome GitHub Profile README
  https://github.com/abhisheknaiidu/awesome-github-profile-readme
  
- GitHub Profile README Generator
  https://rahuldkjain.github.io/gh-profile-readme-generator/
________________________________________
今日重點回顧
✅ 核心要點:

1. Profile README
   - 建立特殊 repo
   - 顯示在首頁最上方
   - 第一印象很重要

2. 內容規劃
   - 自我介紹
   - 技能展示
   - 統計數據
   - 聯絡方式

3. 動態元素
   - GitHub 統計
   - 打字動畫
   - 訪客計數
   - 自動更新

4. 視覺優化
   - 徽章
   - Banner
   - 配色
   - 排版

記住:
簡潔 > 複雜
真實 > 浮誇
定期更新 > 一次完成
________________________________________
立即行動
# 今天就做(1 小時)
□ 建立 Profile README repo
□ 選擇一個範本
□ 填入你的資訊
□ 加入統計卡片

# 本週完成(2 小時)
□ 自訂設計和配色
□ 加入技能徽章
□ 設定自動更新
□ 最佳化排版
□ 請朋友給意見

# 快速開始
# 1. 建立 repo(與 username 同名)
# 2. 複製範本到 README.md
# 3. 替換所有 "你的username"
# 4. 替換個人資訊
# 5. Push 並查看效果


上一篇
Day 28:建立作品集 - 用 GitHub 展示你的實力
下一篇
Day 30:面試準備與總結
系列文
30天 Git 版本控制實戰筆記30
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言