Welcome to mirror list, hosted at ThFree Co, Russian Federation.

404.html « layouts - github.com/bjacquemet/personal-web.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ddc4b8e9fd0651d30d7560d4ced4bc35b03a5b73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ partial "header" .}}

<h1>{{ .Site.Params.notFound.h1 }}</h1>
<p>{{ .Site.Params.notFound.p }}</p>
<img src="{{ .Site.Params.notFound.gopher }}" alt="gopher" title="gopher" class="gopher" />

{{ if .Site.Params.notFound.mainSection }}
  {{ $scratch := newScratch }}
  {{ if eq .Site.Params.notFound.mainSection "portfolio" }}
    {{ $scratch.Set "section" .Site.Params.sections.portfolio }}
  {{ else }}
    {{ $scratch.Set "section" (.Site.Params.sections.post) }}
  {{ end }}

  <p>While you're here, you can check out my last {{ $scratch.Get "section" }}:</p>
  {{ $pages := where site.RegularPages.ByPublishDate.Reverse "Type" "in" .Site.Params.notFound.mainSection }}
  {{ range first 1 $pages }}
    {{ partial (printf "%s/item.html" .Site.Params.notFound.mainSection) . }}
  {{end}}
{{end}}

{{ partial "footer" .}}