fix it
This commit is contained in:
24
homepage/layouts/404.html
Normal file
24
homepage/layouts/404.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{{ define "main" }}
|
||||
<h1>404 - Page Not Found</h1>
|
||||
<p>The page you're looking for doesn't exist or has been moved.</p>
|
||||
|
||||
<nav aria-label="404 navigation">
|
||||
<ul>
|
||||
<li><a href="{{ "/" | relURL }}">← Return to homepage</a></li>
|
||||
{{ with site.Home }}
|
||||
{{ with .GetPage "posts" }}
|
||||
{{ if . }}
|
||||
<li><a href="{{ .RelPermalink }}">Browse posts</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ with site.Home }}
|
||||
{{ with .GetPage "about" }}
|
||||
{{ if . }}
|
||||
<li><a href="{{ .RelPermalink }}">About page</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user