aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/404.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/404.html')
-rw-r--r--layouts/404.html14
1 files changed, 3 insertions, 11 deletions
diff --git a/layouts/404.html b/layouts/404.html
index eada35e..754d082 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,5 +1,5 @@
{{ define "main"}}
-<div class="mw7 center">
+<div class="mw7 center avenir ph2">
<h1> Page not found</h1>
@@ -10,17 +10,9 @@
{{ $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>
+ {{ range first 5 $query }}
+ {{ partial "post.html" . }}
{{ end }}
- </ul>
{{ end }}
</div>