diff options
| author | eltrac <hi@eltr.ac> | 2026-03-22 22:50:52 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-22 22:50:52 +0800 |
| commit | edb73be85f7f765000133e6f6694add4599d56c0 (patch) | |
| tree | 7d38d63c0b221242dbb0a191ebd4226971f718f2 /layouts | |
| parent | 662fc45d7c1720fee28a9ac2f0a3f5e9cd4defa9 (diff) | |
feat: add `u-in-replu-to` markup
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/page.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/page.html b/layouts/page.html index 4e08b11..e9dae76 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -6,6 +6,10 @@ {{ $dateHuman := .Date | time.Format ":date_long" }} <time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> + {{ with .Params.in-reply-to }} + <p>本页面是对 <a href="{{ . }}" class="u-in-reply-to" target="_blank">{{ .Params.in-reply-to-title }}</a> 的回复。</p> + {{ end }} + <div class="e-content"> {{ .Content }} </div> |
