- 层 1 所有页面文案改富文本:site-content 新增 renderRich(md,{inline})
复用既有全管线(raw→内容净化→class 白名单→链接卡片);接入
home.tagline/subtitle、opensource.blurb、about.intro、blocks prose;
新增 .rich 容器作用域并与 .prose-body 合并(77 处选择器覆盖四类容器)
坑:renderRich 输出 <p> 塞进 <p class="tagline"> 会被浏览器拆散 →
行内场景用 {inline:true} 剥外层 <p>
- 层 2 页面级排版覆盖:三单例加 typography{font?,accent?,scale?},读取器
pageTypography() 走白名单(10 字族 / 18 色类,scale 夹 0.8–1.25,清单外
忽略);页面容器挂 .page-typo + CSS 变量 --page-font/--page-accent/
--page-scale,不动全站 tokens;后台三页加「页面排版覆盖」下拉
- 层 3 艺术字体:新增 font-art-kuaile(快乐体专用类,字距微调),白名单与
可视化面板同步;站酷高端黑/阿里妈妈东方大楷/演示悠然小楷因无 npm 包或
嵌入条款风险进候补清单
- 默认值清理:about.yaml 的 typography 测试值(整页汇文)清为注释示例——
整页换字族会带来 694KB 字体成本,默认留空=全站默认排版
验证: 构建 48 页 exit 0;E2E 37/37;三页 page-typo 挂载与变量实测、四页
(图库/书架/文章/装备)隔离为 0、font-art-kuaile 生效、about 清空后
无覆盖
Spec: none (排版三层,先于 5g 的任务;T3/T4 另行交付)
Co-authored-by: GLM-5.3
91 lines
4.3 KiB
YAML
91 lines
4.3 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: 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
|