summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-22 23:03:36 +0800
committereltrac <hi@eltr.ac>2026-03-22 23:03:36 +0800
commitcf7b56a8f0d2c4db2a4badafe83b1ef042f86b7e (patch)
tree70df4c1f443597f5a9f2791d192a7c18baeca250 /layouts
parentbed4db00ea4159d8c96c55569b307f0d16273dd9 (diff)
fix: cannot get params correctly inside with
Diffstat (limited to 'layouts')
-rw-r--r--layouts/page.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/page.html b/layouts/page.html
index 9285e8d..934f40f 100644
--- a/layouts/page.html
+++ b/layouts/page.html
@@ -6,8 +6,9 @@
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+ {{ $page := . }}
{{ with .Params.inReplyTo }}
- <p>本页面是对 <a href="{{ . }}" class="u-in-reply-to" target="_blank">{{ .Params.inReplyToTitle }}</a> 的回复。</p>
+ <p style="font-style: italic">本页面是对 <a href="{{ . }}" class="u-in-reply-to" target="_blank">{{ $page.Params.inReplyToTitle }}</a> 的回复。</p>
{{ end }}
<div class="e-content">