Design
交互态只写一遍
同一个 hover、按下和选中态在四个组件里各写一遍,最后一定会长出四种样子。这次把它们收进一套控件样式,并让 ARIA 成为选中态的唯一来源。
Whitespace and Rhythm in Interfaces
Whitespace is not "putting less on the page"; it is consistent spacing and hierarchy that make the reading order predictable.
目录、回顶和两套坐标
右侧目录和回顶按钮原本各用一套坐标定位。把按钮放进 main,再用 Anchor Positioning 锚定正文列之后,布局才回到一个模型里。
把散落的展示规则收回组件
站内的 #、· 和日期格式原本散落在各个页面;这次把它们收进 Tag、OriginalLanguage 和 DateTime,让标记、语言与时间只在一个地方定义。
页脚与正文之间,那段空白该由谁承担
sticky footer 能让短页面不露底,却会在长屏幕上把正文和页脚隔开一整屏。这次我把站点改回普通文档流,并保留了 min-height——它还有别的作用。
After Moving the Blog to Astro
From a static template to Astro content collections, routing, and image handling — and the parts that actually got easier afterward.


