Browse Source

Added 404 page

master
digitalcraftsman 9 years ago
parent
commit
c81554a3f9
  1. 32
      layouts/404.html

32
layouts/404.html

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
{{ partial "nav.html" . }}
<section id="wrapper" class="home">
<article class="post">
<header>
<h1>404 - page not found</h1>
<h3>The page you're looking for doesn't seem to exist.</h3>
</header>
<ul id="post-list" class="archive readmore">
<h3>Read more</h3>
{{ range first 10 .Site.Pages }}
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if ne $url "about/" }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
</li>
{{ end }}
{{ end }}
</ul>
</article>
{{ partial "footer.html" . }}
</section>
</body>
</html>
Loading…
Cancel
Save