aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/404.html
blob: 754d082a3c5721e426e8e1508e7e610f631b0abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{ define "main"}}
<div class="mw7 center avenir ph2">

  <h1> Page not found</h1>

  {{/* Suggest recently published pages to the user. */}}

  <p>Perhaps you were looking for one of these?</p>

  {{ $query := where (where (where (where site.RegularPages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true) "Permalink" "!=" "" }}
  {{ $count := len $query }}
  {{ if gt $count 0 }}
    {{ range first 5 $query }}
    {{ partial "post.html" . }}
    {{ end }}
  {{ end }}

</div>

{{ end }}