用户原话:开源页开篇是从 GitHub README 直接移植的,「部分内容没有居中,有些图片
也没有正常显示,可以自行进行美化,无需完全一致……有些可以直接移植到关于页面」。
病根:README 是 GitHub 专用 markdown——`<div align="center">` 靠 HTML 属性居中
(本站按普通块渲染,故"没居中"),且依赖 7 类外链图(readme-typing-svg /
shields.io / github-readme-stats / streak-stats / activity-graph / snake /
komarev),慢网或被墙时全空白(故"图片不显示")。
T5 开源页重构:
- 新增 geek/GithubProfile.astro:头像 / 名字@handle / 定位叙述 / 社交图标 /
统计四格(followers、公开仓、总星标)/ 语言占比灰阶条(仅第一名 accent,
其余 tokens 灰阶)——**零外链图、零 iframe、零第三方徽章**
- 语言聚合复用 loadProjects 的结果;followers 与公开仓数走 GitHub REST
- 任一取数失败只隐藏该项(catch + warn),绝不炸构建
- opensource.astro / en:档案卡承接原 README 位置 → 热力图 → 项目墙;
README 渲染降级为兼容通道(intro_from=off 时不执行),yaml 注释写明
7 类外链图与 align 失效原因并标「不推荐」
- **修既有隐患**:GitHub API 请求原先不带 token,匿名 60 次/小时在密集构建下
被打满 → 项目墙退化成兜底 JSON(今天一度只剩 1 条)。现对 api.github.com
自动附 Bearer(token 读宿主 0600 文件,不入仓),墙恢复 16 条、总星标 0→66、
语言占比变真值
T6 关于页承接:
- about.yaml blocks 扩为 prose / tracks(兴趣版图)/ prose(关于我)/
linklist(找到我:本站·邮件·GitHub·自建 gitea·RSS)/ prose(本站如何构建),
双语齐备;AboutPage 零改动(blocks 早已驱动)
- 原则落地:关于页讲人,开源页讲开源,两边不再重复
验证: 构建 51 页 exit 0;content-lint 51 页 0/0/0;config-check 全过;
E2E **46/46 PASS**(37 原有 + 本包新增 9 项:置顶顺序与徽标、文章页计数、
模板彩色与折叠、瞬间评论区与只读计数、关于页块驱动);
dist/opensource 七类第三方外链零命中、第三方 img 数 0;数据实值:
语言占比 Python/TypeScript 各 36%、Shell/Rust/JS 各 9%
Spec: 2026-11-02_blog-5h-content-social (T5/T6)
Co-authored-by: GLM-5.3
154 lines
6.1 KiB
YAML
154 lines
6.1 KiB
YAML
# 关于页(后台「页面文案 → 关于页」可改)
|
||
# ── 一级:blocks 块式正文(按顺序渲染,可拖拽排序;某块 enabled: false 即隐藏)
|
||
# ── 二级:intro 多段 markdown(仅在 blocks 为空时使用)
|
||
# ── 三级:内置默认文案(两者都空时兜底,构建永不炸)
|
||
layout:
|
||
# 名片区(头像/名字/身份语/社交)开关:头像等数据事实源在「主页设置」
|
||
showIdCard: true
|
||
|
||
blocks:
|
||
- type: prose
|
||
width: narrow
|
||
body:
|
||
zh: |
|
||
<span class="font-huiwen c-red">写作者</span> · 读者 · 快门按压者,拥抱开源。
|
||
|
||
这里是我三条轨道的公开工作台:**读过的书**留下评注,**写过的代码**进项目墙,**按下的快门**收入图库。
|
||
|
||
所有内容都有一个明确去处:
|
||
|
||
- 长文沉淀在文章与书架
|
||
- 短句与随手拍落在瞬间
|
||
- 影像收进图库,配一点 EXIF 与一句策展
|
||
|
||
本站本身即开源,构建与发布全链都在仓里。
|
||
en: |
|
||
<span class="font-huiwen c-red">Writer</span> · Reader · Shutter-presser, embracing open source.
|
||
|
||
This is the public workbench of my three tracks: **books** that left notes, **code** that reaches the project wall, and **shutters** I pressed that land in the gallery.
|
||
|
||
Everything has a clear destination:
|
||
|
||
- Long-form writing goes to posts and the bookshelf
|
||
- Short lines and snapshots land in moments
|
||
- Images go to the gallery, with a bit of EXIF and one line of curation
|
||
|
||
This site is itself open source — the full build and deploy pipeline lives in the repo.
|
||
|
||
- type: tracks
|
||
title:
|
||
zh: 兴趣版图
|
||
en: Interests
|
||
items:
|
||
- icon: book
|
||
name:
|
||
zh: 阅读
|
||
en: Reading
|
||
desc:
|
||
zh: 文学与戏剧为主,读到哪写到哪。
|
||
en: Mostly literature and drama; I write as I read.
|
||
- icon: terminal
|
||
name:
|
||
zh: 技术
|
||
en: Tech
|
||
desc:
|
||
zh: Linux、容器与自托管,把家里的小机器折腾成顺手的工具。
|
||
en: Linux, containers, and self-hosting — turning the little machines at home into handy tools.
|
||
- icon: camera
|
||
name:
|
||
zh: 摄影
|
||
en: Photography
|
||
desc:
|
||
zh: 街拍与山野,随身一台无反,在等光的间隙按快门。
|
||
en: Street and landscapes with a mirrorless camera, pressing the shutter while waiting for the light.
|
||
|
||
- type: prose
|
||
title:
|
||
zh: 关于我
|
||
en: About me
|
||
body:
|
||
zh: |
|
||
气象是我起点的专业——一个想做预报的人,依旧把云图当日常读物。
|
||
|
||
💻 写代码是第二条主线:Linux、容器、自托管,把日常工具一件件磨顺手。
|
||
|
||
🌐 作品大多在 [wait4x.online](https://wait4x.online/)。
|
||
|
||
⚡ 信条:**拥抱开源,热爱开源**。
|
||
en: |
|
||
Meteorology is where I started — an aspiring forecaster who still reads weather charts for fun.
|
||
|
||
💻 Coding is the second thread: Linux, containers, self-hosting — polishing everyday tools one by one.
|
||
|
||
🌐 Most of my work lives at [wait4x.online](https://wait4x.online/).
|
||
|
||
⚡ Motto: **embrace open source, love open source**.
|
||
|
||
- type: linklist
|
||
title:
|
||
zh: 找到我
|
||
en: Find me
|
||
items:
|
||
- label:
|
||
zh: 本站
|
||
en: Website
|
||
href: 'https://wait4x.online/'
|
||
note:
|
||
zh: 文章、图库与瞬间
|
||
en: Posts, gallery and moments
|
||
- label:
|
||
zh: 邮件
|
||
en: Email
|
||
href: 'mailto:admin@wait4x.online'
|
||
note:
|
||
zh: 有话直说
|
||
en: Say hello directly
|
||
- label:
|
||
zh: GitHub
|
||
en: GitHub
|
||
href: 'https://github.com/wait4xx'
|
||
note:
|
||
zh: 开源项目与提交
|
||
en: Open-source projects and commits
|
||
- label:
|
||
zh: 自托管 gitea
|
||
en: Self-hosted gitea
|
||
href: 'https://git.wait4x.online/wait4x/blog'
|
||
note:
|
||
zh: 本站源码
|
||
en: Source of this site
|
||
- label:
|
||
zh: RSS
|
||
en: RSS
|
||
href: /rss.xml
|
||
note:
|
||
zh: 订阅更新
|
||
en: Subscribe to updates
|
||
|
||
- type: prose
|
||
title:
|
||
zh: 本站如何构建
|
||
en: How this site is built
|
||
body:
|
||
zh: 页面由 Astro 静态生成,不含运行时框架 JS;内容住在自托管 gitea——本地编辑器与 gitea 网页写的是同一个 git 仓库,push 之后由 homelab 自动构建发布;评论走自托管 Artalk。页脚 built from 一行链到本次构建对应的 commit,构建过程透明可追溯。
|
||
en: Pages are statically generated by Astro with no runtime framework JS. Content lives on a self-hosted gitea — my local editor and the gitea web UI write to the same git repository, and each push is built and published automatically by the homelab. Comments run on self-hosted Artalk. The built-from line in the footer links to the commit behind this build, keeping the process transparent and traceable.
|
||
|
||
# ---- 二级回退(blocks 为空时使用)----
|
||
intro:
|
||
zh: |
|
||
写作者 · 读者 · 快门按压者,拥抱开源。
|
||
|
||
这里是我三条轨道的公开工作台:**读过的书**留下评注,**写过的代码**进项目墙,**按下的快门**收入图库。
|
||
en: |
|
||
Writer · Reader · Shutter-presser, embracing open source.
|
||
|
||
This is the public workbench of my three tracks: **books** that left notes, **code** that reaches the project wall, and **shutters** I pressed that land in the gallery.
|
||
|
||
# 页面级排版覆盖(层 2)
|
||
# 页面级排版覆盖(后台「关于页 → 页面排版覆盖」可改):
|
||
# 整页换字族会带来字体体积成本(如 font-huiwen 整页 ≈694KB),默认留空=全站默认排版
|
||
# typography:
|
||
# font: font-huiwen # 字族:font-serif/font-sans/font-kai/font-huiwen/font-kuaile…
|
||
# accent: c-red # 强调色类:c-blue/c-red/…(外壳仍灰阶)
|
||
# scale: 1.05 # 字号缩放 0.8–1.25
|