summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-05 21:02:50 +0800
committerEltrac <hi@guhub.cn>2025-11-05 21:02:50 +0800
commitcc4813641d8a2deb1c2fe80e44254175db94f3c4 (patch)
treea8a50f22dc266040994273b1361a81b3e5c3b8cb
parentb6c92157f5ebb245a849dbe8562dae76dd934687 (diff)
fix: invalid variable name in post item partial
Former-commit-id: f1d33282a497e09782c3fd42a6e79f6911823c23
-rw-r--r--content/featured.md2
-rw-r--r--layouts/_partials/items/post.html2
2 files changed, 1 insertions, 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 @@
</header>
{{ if or $showSummary .ctx.Params.description }}
<div class="markdown-body text-size-lg leading-relaxed"
- style="view-transition-name: post-content-{{ .File.UniqueID }}">
+ style="view-transition-name: post-content-{{ .ctx.File.UniqueID }}">
{{ if $showSummary }}
{{ .ctx.Summary }}
{{ else if .ctx.Params.description }}