{{- define "main" -}}

{{ i18n "page_not_found" }}

{{/* Show search box if built-in search engine is enabled. */}} {{ if in (slice "wowchemy" "algolia") (lower site.Params.features.search.provider) }}
{{ end }} {{/* Suggest recently published pages to the user. */}}

{{ i18n "404_recommendations" }}

{{ $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 }}

{{ i18n "user_profile_latest" }}

{{ end }}
{{- end -}}