diff options
| author | BigCoke233 <hi@guhub.cn> | 2025-12-17 20:50:29 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2025-12-17 20:50:29 +0800 |
| commit | a1cee9d9252153acb31238c9490bf78a614b453a (patch) | |
| tree | f7b2ea2ea683426e65cf96c955106a2794ba7e70 | |
| parent | c79bc861233310a684ba35fdf28557fc690b6ebb (diff) | |
docs: add notes to sections
Former-commit-id: 8204547ad080d5a1706298c6ac81d43450d3b57d
| -rw-r--r-- | content/fictions/_index.md | 2 | ||||
| -rw-r--r-- | content/library/_index.md | 2 | ||||
| -rw-r--r-- | layouts/fictions/section.html | 1 | ||||
| -rw-r--r-- | layouts/library/section.html | 3 |
4 files changed, 8 insertions, 0 deletions
diff --git a/content/fictions/_index.md b/content/fictions/_index.md index 219db997..6f573ed9 100644 --- a/content/fictions/_index.md +++ b/content/fictions/_index.md @@ -1,3 +1,5 @@ --- title: 小说集 --- + +虚构故事,以及…… 成吨的黑历史。 diff --git a/content/library/_index.md b/content/library/_index.md index 3bc3ea89..2ba2798c 100644 --- a/content/library/_index.md +++ b/content/library/_index.md @@ -1,3 +1,5 @@ --- title: 图书集 --- + +从 2024 年起,我读过的每一本书都会记录在这里,我认为一本好书应该值得我为它写下几千字的书评(当然,烂书也该骂骂,不吐不快)。 diff --git a/layouts/fictions/section.html b/layouts/fictions/section.html index 7e094826..997613e4 100644 --- a/layouts/fictions/section.html +++ b/layouts/fictions/section.html @@ -2,6 +2,7 @@ <article> {{ partial "header.html" . }} {{ partial "home/home-nav" . }} + <div class="markdown-body">{{ .Content }}</div> <div class="pagefind-exclude my-8"> <div class="flex flex-wrap justify-around gap-8"> {{- range .Pages }} diff --git a/layouts/library/section.html b/layouts/library/section.html index cd5cb555..7d4ad330 100644 --- a/layouts/library/section.html +++ b/layouts/library/section.html @@ -15,6 +15,9 @@ <article class="pagefind-exclude"> {{ partial "header.html" . }} {{ partial "home/home-nav" . }} + + <div class="markdown-body">{{ .Content }}</div> + <div> {{ if $isLibraryHome }} |
