summaryrefslogtreecommitdiff
path: root/layouts/library
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-06-06 14:53:45 +0800
committerEltrac <hi@guhub.cn>2025-06-06 14:53:45 +0800
commited5fe0848d18665cd3fbd6011876207b2fee61e4 (patch)
tree6a6fefb50c40489c439552ab1fcd4c0beb94c34d /layouts/library
parent8f45cd85ea4d00cd1d0bb8a13c2f70c760d32a4c (diff)
refactor: reuse some page components
Diffstat (limited to 'layouts/library')
-rw-r--r--layouts/library/single.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/library/single.html b/layouts/library/single.html
index d0dbf542..861cee24 100644
--- a/layouts/library/single.html
+++ b/layouts/library/single.html
@@ -35,11 +35,10 @@
<div class="book-content">
{{ .Content }}
</div>
+ <!-- Endnotes -->
+ {{ partial "components/endnotes" . }}
<div class="book-footer">
- <p>于 <time
- data-pagefind-sort="date[data-date], weight[data-weight]"
- data-date="{{ .Date.Format "2006-01-02" }}"
- data-weight="10">{{ .Date.Format "2006-01-02" }}</time> 读完</p>
+ <p>于 {{ partial "components/date" . }} 读完</p>
</div>
</div>
{{ partial "components/comment.html" . }}