blob: eada35e86f4f7f0afb715e32aa1c353bdac890b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{{ define "main"}}
<div class="mw7 center">
<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 }}
<h2>{{ i18n "user_profile_latest" }}</h2>
<ul class="list pl0 ba br2">
{{ range first 10 $query }}
<li class="bb pa3 w3-hover-theme">
<a href="{{ .RelPermalink }}" class="link near-white">
<h4>{{ .Title }}</h4>
{{ .Summary }}</a>
{{ partial "metadata.html" . }}
</li>
{{ end }}
</ul>
{{ end }}
</div>
{{ end }}
|