aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-06 18:29:59 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-06 18:33:16 +0200
commit4aaada38d09811b6ee6a34f55b3a44514efa2aad (patch)
tree10dcfeef9668912587292c3ed458b099d9effb18
parent3f901f09c7be956e5ccee99a6202d51ca361193d (diff)
downloadhugo-minimalist-theme-4aaada38d09811b6ee6a34f55b3a44514efa2aad.tar.gz
hugo-minimalist-theme-4aaada38d09811b6ee6a34f55b3a44514efa2aad.tar.bz2
hugo-minimalist-theme-4aaada38d09811b6ee6a34f55b3a44514efa2aad.zip
FIX 404 page
-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>