From cf7b56a8f0d2c4db2a4badafe83b1ef042f86b7e Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 22 Mar 2026 23:03:36 +0800 Subject: fix: cannot get params correctly inside with --- layouts/page.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layouts') 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" }} + {{ $page := . }} {{ with .Params.inReplyTo }} -

本页面是对 {{ .Params.inReplyToTitle }} 的回复。

+

本页面是对 {{ $page.Params.inReplyToTitle }} 的回复。

{{ end }}
-- cgit v1.2.3