From 4182874b764ea3d6ec6224e1b4d0f1b38ff78c05 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Tue, 1 Apr 2025 23:44:50 +0800 Subject: feat(www): update. --- www/layouts/_default/list.html | 11 ++++++++--- www/layouts/index.html | 2 +- www/layouts/shortcodes/todo.html | 6 +++++- 3 files changed, 14 insertions(+), 5 deletions(-) (limited to 'www/layouts') diff --git a/www/layouts/_default/list.html b/www/layouts/_default/list.html index c7c6cce..5bb0b5e 100644 --- a/www/layouts/_default/list.html +++ b/www/layouts/_default/list.html @@ -4,9 +4,14 @@ {{ define "content" }} {{ partial "nav.html" . }} -

Posts

+

{{ .Title }}

+ {{ $pages := .RegularPages }} + {{ if .Param "recursive" }} + {{ $pages = .RegularPagesRecursive }} + {{ end }} {{ partial "preview/posts.html" (dict - "h" "h3" - "pages" (.RegularPages.ByDate.Reverse.Limit 3)) + "h" "h3" + "pages" $pages + ) }} {{ end }} diff --git a/www/layouts/index.html b/www/layouts/index.html index f456e71..e05af03 100644 --- a/www/layouts/index.html +++ b/www/layouts/index.html @@ -33,7 +33,7 @@ anything to me.