diff options
Diffstat (limited to 'layouts/404.html')
-rw-r--r-- | layouts/404.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/layouts/404.html b/layouts/404.html index 50cf5a3..1b3bacc 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -5,16 +5,16 @@ <div class="mw7 center ph1 mv4"> <h1 class="f1 tc title baskerville">{{ .Title }}</h1> - <p class="f4 baskerville">Perhaps you were looking for one of these?</p> + <p class="f4 baskerville">{{ T "maybe_look" }}</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 }} <h3 class="lh-title f3 baskerville">{{ T "recent_pages" }}</h3> - <ul class="list ph5"> + <ul class="list"> {{ range first 10 $query }} - <li class="lh-copy stripe-dark ph1 pv2"> - <a class="link dim color-inherit" href="{{ .RelPermalink }}"> + <li class="lh-copy grow stripe-dark pa2"> + <a class="link dim color-inherit db" href="{{ .RelPermalink }}"> {{ $dateFormat := .Site.Params.dateFormat | default ":date_medium" }} <time datetime="{{ .Date.Format "2006-01-02" }}" @@ -24,6 +24,7 @@ {{ time.Format $dateFormat .Date }} </time> {{ .Title }} + <sup class="w3-theme ttu pa1 br-pill">{{ .Section }}</sup> </a> </li> {{ end }} @@ -32,7 +33,7 @@ <a href="/search" class="link color-inherit dim"> <h3 class="lh-title f3 baskerville"> <i class="fas fa-magnifying-glass"></i> - Not there? Try using the search page. + {{ T "try_search" }} </h3> </a> </div> |