summaryrefslogtreecommitdiff
path: root/layouts/library/single.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-01 11:16:04 +0800
committerEltrac <hi@guhub.cn>2025-04-01 11:16:04 +0800
commit88ca2dea230c2f92d697c3ddb676962a74b72a57 (patch)
treee267776d60a070581cb5a85c39be100c9f4c9078 /layouts/library/single.html
parent2c08db1b47d2c85dae11c66d97962e7f375262a7 (diff)
feat: view transition of card and library page
also, remove breadcrumbs
Diffstat (limited to 'layouts/library/single.html')
-rw-r--r--layouts/library/single.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/library/single.html b/layouts/library/single.html
index 3a80dbe6..4927ad71 100644
--- a/layouts/library/single.html
+++ b/layouts/library/single.html
@@ -1,8 +1,9 @@
{{ define "main" }}
<article id="book-page">
- {{ partial "components/breadcrumbs.html" . }}
+ {{ partial "header.html" . }}
<div class="markdown-body book-body">
- <div class="book-cover">
+ <div class="book-cover"
+ style="view-transition-name: book-{{ .File.UniqueID }}">
<img src="{{ .Params.cover }}" />
</div>
<h3 class="book-title">{{ .Title }}</h3>