From 9207dc6c57f99a42b522eb86bd2f0bcbb1a7bb7a Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 24 Apr 2025 16:51:48 +0800 Subject: feat: display book reviews on index page --- layouts/index.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index 8ec76d08..19ac50fa 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -20,7 +20,13 @@ {{ .Title }} + > + {{ if eq .Section "library" }} + 读《{{ .Title }}》 + {{ else }} + {{ .Title }} + {{ end }} + {{ if eq .Section "fictions" }} 小说 {{ end }} @@ -43,9 +49,11 @@ {{ $firstPost = false }} {{ end }} - {{ if eq .Section "fictions" }} + {{ if or (eq .Section "fictions") (eq .Section "library") }}
- +
{{ end }} -- cgit v1.2.3