aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/_default
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-04-01 23:44:50 +0800
committerYuqian Yang <crupest@crupest.life>2025-04-02 19:00:58 +0800
commitb2d2e2870660ae64358e7effcad1bb7e0c5dc998 (patch)
tree8e3eb0fb6c56cb81522701b8256777a098298212 /www/layouts/_default
parenta985d6bb3ee26db6444702c3c0c8bff53ba46824 (diff)
downloadcrupest-b2d2e2870660ae64358e7effcad1bb7e0c5dc998.tar.gz
crupest-b2d2e2870660ae64358e7effcad1bb7e0c5dc998.tar.bz2
crupest-b2d2e2870660ae64358e7effcad1bb7e0c5dc998.zip
feat(www): update.
Diffstat (limited to 'www/layouts/_default')
-rw-r--r--www/layouts/_default/list.html11
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 }}