Browse Source

Update 404 page

drone-ci
Silke 1 month ago
parent
commit
22db232d61
  1. 12
      content/404.md
  2. 7
      content/_404.md
  3. 19
      layouts/404.html
  4. BIN
      static/images/404.png

12
content/404.md

@ -1,12 +0,0 @@
---
title: 404
---
Error: 404.
===========
You got a *404.*
This means I have no idea what you are looking for - try starting again from [*the homepage.*](main)
<p style="text-align: center">
<img src="/images/404.png" alt="TumbleBeast" id="tumblebeast"/>
<a href="http://theoatmeal.com"><em>Image courtesy of The Oatmeal</em></a>
</p>

7
content/_404.md

@ -0,0 +1,7 @@
---
title: "Error: 404"
type: 404
---
You got a *404.*
This means I have no idea what you are looking for -
try starting again from [*the homepage.*](/), or look through the pages below.

19
layouts/404.html

@ -1,3 +1,18 @@
{{ range where .Site.Pages "Title" "404" }}
{{ template "_default/single.html" . }}
{{ range where .Site.Pages "Type" "404" }}
{{ partial "top.html" . }}
<header>
<h1>{{ .Title }}</h1>
</header>
<article>
{{ .Content }}
{{ range .Site.Sections }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<ul class="pages">
{{ range .Pages }}
{{ partial "list-entry.html" . }}
{{ end }}
</ul>
{{ end }}
</article>
{{ partial "bottom.html" . }}
{{ end }}

BIN
static/images/404.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

Loading…
Cancel
Save