summaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-16 08:13:36 +0800
committerEltrac <hi@guhub.cn>2025-03-16 08:13:36 +0800
commitc56a4855cfd5bce5af0c6f59b73cedec3fc1503d (patch)
treebde1255b39a87942829f1062fef414408c270508 /layouts/index.html
parent4063cbe27ddcca4346124aefeddbe713819a332c (diff)
feat(animation): implement View Transition
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index e8fadb65..47f2fb03 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -26,6 +26,7 @@
<div class="row">
<div class="col-xs-11 col-sm-10">
<a
+ style="view-transition-name: post-{{ .File.UniqueID }}"
class="posts-title-link"
href="{{ .RelPermalink }}"
data-umami-event="Click Post Link from Index"
@@ -44,7 +45,9 @@
<div class="col-xs-1 col-sm-2 posts-categories">
{{ with .Params.categories }}
<div class="posts-category">
- <a href="/categories/{{ . }}/"><strong>{{ . }}</strong></a>
+ <a
+ href="/categories/{{ . }}/"
+ ><strong>{{ . }}</strong></a>
</div>
{{ end }}
</div>