summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-01 10:08:22 +0800
committerEltrac <hi@guhub.cn>2025-04-01 10:08:22 +0800
commitce149d8063e8e082c820e54602f7ecdda9f88184 (patch)
tree47bc2a2a9963531e44989853ed8cda7aef82a2bc /layouts/_default/single.html
parentd77636bc710c3b1f77096205642eab5ffa801111 (diff)
feat: new home page
- new post list structure and style - move categories page link to postnav, a new navigation component used between homepage and categories page - search anywhere instruction - move posts archive page link to top navigation - some more skeletons! Former-commit-id: 9b8ac5fe0115f4b7609ca6b990a35077c8221c45
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 5b64f3bc..781270f9 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -50,7 +50,8 @@
</header>
<!-- Post Content -->
- <div id="post-content" class="post-content markdown-body">
+ <div id="post-content" class="post-content markdown-body"
+ style="view-transition-name: post-content-{{ .File.UniqueID }}">
{{ if .Params.toc }}
<div id="toc-container"><div id="toc"></div></div>
{{ end }}