From cc4813641d8a2deb1c2fe80e44254175db94f3c4 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Wed, 5 Nov 2025 21:02:50 +0800 Subject: fix: invalid variable name in post item partial Former-commit-id: f1d33282a497e09782c3fd42a6e79f6911823c23 --- content/featured.md | 2 -- layouts/_partials/items/post.html | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/content/featured.md b/content/featured.md index 14e6c587..37964861 100644 --- a/content/featured.md +++ b/content/featured.md @@ -2,5 +2,3 @@ title: 精选 layout: featured --- - -这是博客的精选集,我会在这里列出我自认为写得还不错,或者收到较好反响的文章。如果你想要了解本博客的风格和我的主要观点,读一读这里的文章是个好选择。我希望未来的自己在读这些精选文章时,收获的不是羞耻感,而是从过去的自己那里得到帮助和启发。 diff --git a/layouts/_partials/items/post.html b/layouts/_partials/items/post.html index 64606f04..5527ea6c 100644 --- a/layouts/_partials/items/post.html +++ b/layouts/_partials/items/post.html @@ -30,7 +30,7 @@ {{ if or $showSummary .ctx.Params.description }}
+ style="view-transition-name: post-content-{{ .ctx.File.UniqueID }}"> {{ if $showSummary }} {{ .ctx.Summary }} {{ else if .ctx.Params.description }} -- cgit v1.2.3