diff options
| author | Eltrac <hi@guhub.cn> | 2024-12-19 17:19:36 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2024-12-19 17:19:36 +0800 |
| commit | f2df3601d8298f127e0777f5644753a5d1cca158 (patch) | |
| tree | 614949e658d767145724a554722dbc7876720768 | |
| parent | 8d5a62bb818ceb8c18f395e9e35c6260666202a0 (diff) | |
fix(toc): can't locate to book title
| -rw-r--r-- | layouts/shortcodes/book.html | 2 |
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> |
