mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-10 00:16:16 +00:00
fix: 404 "latest" don't list pages which Hugo doesn't render
where _build: render: never
This commit is contained in:
1 parent
f2a5331af0
commit
81ba175229
1 file changed
+1
-1
@@ -15,7 +15,7 @@
|
||||
|
||||
<p>{{ i18n "404_recommendations" }}</p>
|
||||
|
||||
{{ $query := where (where (where site.Pages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true }}
|
||||
{{ $query := where (where (where (where site.Pages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true) "Permalink" "!=" "" }}
|
||||
{{ $count := len $query }}
|
||||
{{ if gt $count 0 }}
|
||||
<h2>{{ i18n "user_profile_latest" }}</h2>
|
||||
|
||||
Reference in new issue
Block a user