From 481664ee70114f3a4ed83e7b7de8e4ce67752f1a Mon Sep 17 00:00:00 2001 From: fukunee Date: Sun, 15 Nov 2026 13:12:23 +0800 Subject: [PATCH] Move poet divider into the article templates Both single.html templates now emit the rule above the epigraph, and the hand-written trailing --- is gone from the two posts that still carried it, so every article gets the same rule without doubling. --- README.md | 13 +++++++++++-- content/blog/how-this-site-was-built.md | 2 -- content/blog/minimalism.md | 2 -- layouts/_default/single.html | 1 + layouts/blog/single.html | 1 + 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c7c1d0a..8cc1ddc 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,11 @@ Hugo/ │ ├── layouts/ │ ├── hextra-home.html # 自定义首页布局(覆盖主题) +│ ├── blog/single.html # 文章页(poet 打字机 + 分隔线) +│ ├── _default/single.html # 同上,非 blog 分区 +│ ├── shortcodes/ +│ │ ├── note.html # 边注 / 书目边注 +│ │ └── caption.html # 图片说明 │ └── _partials/ │ └── custom/ │ └── head-end.html # 字体预加载 @@ -46,8 +51,10 @@ Hugo/ │ ├── images/ │ │ ├── logo.svg # FK 图标(浅色模式) │ │ └── logo-dark.svg # FK 图标(深色模式) -│ └── fonts/ -│ └── iAWriterQuattroSRegular.ttf +│ ├── fonts/ +│ │ └── iAWriterQuattroSRegular.ttf +│ └── js/ +│ └── notes.js # 宽屏边注定位 │ ├── themes/ │ ├── hextra/ # 当前主题 @@ -216,6 +223,7 @@ AI 在本站的位置是编辑和对手,不是代笔。下面这些是硬规 - 长文必须分节;千字以内的短文可以不节,但段落仍要分开。 - 列表只用于并列项。叙述、论证、感受一律写成段落。 - 边注用 `{{< note >}}…{{< /note >}}`,宽屏落在正文左侧页边,窄屏变成虚线框。一条边注只放一件事,一段话写完;比正文还长的「注释」说明它该挪进正文。出处、术语说明、补充数据都走边注。书目用 `{{< note cite >}}`,每行一项,各占一行。 +- 文末 `poet` 块上下各有一条横线,这两条由模板给出:上面那条来自 `layouts/blog/single.html` 与 `layouts/_default/single.html` 里 `poet` 块前的 `
`,下面那条是正文之后翻页栏的顶边。正文末尾不要手写 `---`,写了会和模板的那条叠成两条。 ### 六、不用星号加粗 @@ -235,6 +243,7 @@ AI 在本站的位置是编辑和对手,不是代笔。下面这些是硬规 - 「你」已经数过一遍,第二人称基本归零(译文除外);留下的「我」只用来标判断或标经验 - 至少提出过一个反对自己的意见 - 标题是问句或名词短语,直说这一节讲什么,没有比喻和意象(h1 同样) +- 正文末尾没有手写的 `---`;`poet` 上下两条横线由模板和翻页栏管,文章里不画 - 全篇只有一个中心物象,从开头用到结尾,中途没换、没叠,且只出现在正文里 - 每节的判断前面交代了「在我看来」「我认为」,或明说是自己的估计而非统计 diff --git a/content/blog/how-this-site-was-built.md b/content/blog/how-this-site-was-built.md index 9f2e20a..b40ce3d 100644 --- a/content/blog/how-this-site-was-built.md +++ b/content/blog/how-this-site-was-built.md @@ -112,5 +112,3 @@ rm -rf public && hugo --gc --minify 先把散在各平台的东西导出来,存成纯文本,放在找得到的地方。这一步做完,要盖什么会更清楚,也可能发现根本不用盖——很多时候,人真正需要的不是一间房子,是一份底稿。 顺便留个问题:上一次确认自己写的东西还在手上,是什么时候? - ---- \ No newline at end of file diff --git a/content/blog/minimalism.md b/content/blog/minimalism.md index 1b6e754..f14dc61 100644 --- a/content/blog/minimalism.md +++ b/content/blog/minimalism.md @@ -81,5 +81,3 @@ tags: 最后说一件今晚就能做的,不用从扔东西开始,也不用先去买本子:打开手机的设置,把最吵的那三个通知关掉,一周后回来看损失了什么。多半什么也没损失。 如果真有损失,那反而是个值得记下来的问题——哪一类消息舍不得让它安静? - ---- \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4dac2e3..ffdea7f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -21,6 +21,7 @@ {{ end }}
{{ .Content }} {{- with .Params.poet }} +
{{ .Content }} {{- with .Params.poet }} +