Explorar o código

fix: 404 "latest" don't list pages which Hugo doesn't render

where

_build:
  render: never
George Cushen %!s(int64=3) %!d(string=hai) anos
pai
achega
81ba175229
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      wowchemy/layouts/404.html

+ 1 - 1
wowchemy/layouts/404.html

@@ -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>