diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-04-01 23:44:50 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-04-02 19:00:58 +0800 |
commit | 4182874b764ea3d6ec6224e1b4d0f1b38ff78c05 (patch) | |
tree | 089b061146913b7b8afa36c56cc5c64cb1124cc7 /www/layouts/_default/list.html | |
parent | 6e266e43ddbd99cadc814190c54eb77890f42479 (diff) | |
download | crupest-4182874b764ea3d6ec6224e1b4d0f1b38ff78c05.tar.gz crupest-4182874b764ea3d6ec6224e1b4d0f1b38ff78c05.tar.bz2 crupest-4182874b764ea3d6ec6224e1b4d0f1b38ff78c05.zip |
feat(www): update.
Diffstat (limited to 'www/layouts/_default/list.html')
-rw-r--r-- | www/layouts/_default/list.html | 11 |
1 files changed, 8 insertions, 3 deletions
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" . }} - <h1>Posts</h1> + <h1>{{ .Title }}</h1> + {{ $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 }} |