diff options
| author | eltrac <hi@eltr.ac> | 2026-03-22 23:03:36 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-22 23:03:36 +0800 |
| commit | cf7b56a8f0d2c4db2a4badafe83b1ef042f86b7e (patch) | |
| tree | 70df4c1f443597f5a9f2791d192a7c18baeca250 /layouts | |
| parent | bed4db00ea4159d8c96c55569b307f0d16273dd9 (diff) | |
fix: cannot get params correctly inside with
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/page.html | 3 |
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"> |
