summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2024-12-19 17:19:36 +0800
committerEltrac <hi@guhub.cn>2024-12-19 17:19:36 +0800
commitf2df3601d8298f127e0777f5644753a5d1cca158 (patch)
tree614949e658d767145724a554722dbc7876720768
parent8d5a62bb818ceb8c18f395e9e35c6260666202a0 (diff)
fix(toc): can't locate to book title
-rw-r--r--layouts/shortcodes/book.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/book.html b/layouts/shortcodes/book.html
index 31999088..363b7c94 100644
--- a/layouts/shortcodes/book.html
+++ b/layouts/shortcodes/book.html
@@ -6,7 +6,7 @@
</div>
<div class="book-description">
<div class="book-description-header">
- <h3 class="book-title">{{ .Get "title" }}</h3>
+ <h3 class="book-title" id="book-{{ .Get "title" }}">{{ .Get "title" }}</h3>
<p>分数:{{ .Get "rating" }}</p>
</div>
<div>