Add initial 404 page

This commit is contained in:
vimux 2018-05-23 12:55:29 +03:00
parent b3bc58ef33
commit 90093759c7
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34
3 changed files with 34 additions and 0 deletions

View file

@ -11,3 +11,13 @@
# Footer # Footer
- id: footer_credits - id: footer_credits
translation: "Powered by <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> and <a href=\"https://github.com/vimux/binario\" rel=\"nofollow noopener\" target=\"_blank\">Binario</a> theme." translation: "Powered by <a href=\"https://gohugo.io/\" rel=\"nofollow noopener\" target=\"_blank\">Hugo</a> and <a href=\"https://github.com/vimux/binario\" rel=\"nofollow noopener\" target=\"_blank\">Binario</a> theme."
# 404
- id: page404_title
translation: "404 Page not found"
- id: page404_lead
translation: "Sorry, the page you were looking for doesn't exist."
- id: page404_link
translation: "Go back to main page"

View file

@ -0,0 +1,9 @@
{{ partial "header.html" . }}
<div class="main">
<div class="page404 block center">
<h1 class="page404__title">{{ T "page404_title" }}</h1>
<p class="page404__lead">{{ T "page404_lead" }}</p>
<a class="page404__link" href="">{{ T "page404_link" }}</a>
</div>
</div>
{{ partial "footer.html" . }}

View file

@ -725,6 +725,21 @@ mark {
border-color: #888; border-color: #888;
} }
/* 404 */
.page404__title {
font-size: 2.25rem;
font-weight: 700;
}
.page404__lead {
font-size: 1.5rem;
margin-bottom: 2rem;
}
.page404__link {
font-size: 1.5rem;
}
/* Footer */ /* Footer */
.footer { .footer {
padding: .625rem 0; padding: .625rem 0;