Merge pull request #51 from mochaaP/404-page

Add 404 Page
This commit is contained in:
Radek Kozieł 2020-05-28 23:57:19 +02:00 committed by GitHub
commit cf990015dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -116,6 +116,8 @@ paginate = 5
menuMore = "Show more"
readMore = "Read more"
readOtherPosts = "Read other posts"
missingContentMessage = "Page not found."
missingBackButtonLabel = "Go Back"
[languages.en.params.logo]
logoText = "Terminal"

11
layouts/404.html Normal file
View File

@ -0,0 +1,11 @@
{{ define "main" }}
<div class="post">
<h1 class="post-title">404!</h1>
<div class="post-content">
{{ .Site.Params.missingContentMessage }}<br>
<a href="{{ "/" | absURL }}">{{ .Site.Params.missingBackButtonLabel }}&nbsp;</a>
</div>
</div>
{{ end }}