add 404 page
This commit is contained in:
parent
00465629d2
commit
6e747d9e0c
6 changed files with 45 additions and 21 deletions
|
@ -1,11 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>404 Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>It seems you got lost....</h1>
|
||||
</body>
|
||||
</html>
|
||||
{{ define "navbar" }}
|
||||
{{ partial "navbar-2.html" (dict "baseURL" .Site.BaseURL "title" .Site.Title "hasToggleButton" true) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<div class="notFound">
|
||||
<img src="/assets/images/404.png" alt="">
|
||||
<div class="message">
|
||||
<h1>404</h1>
|
||||
<h4>The page you are looking for is not done yet.</h4>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<ul>
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="nav-item">
|
||||
<a class="smooth-scroll" href="#{{ .URL }}">{{ .Name }}</a>
|
||||
<a class="smooth-scroll" href="{{ .URL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<nav class="navbar navbar-expand-lg top-navbar initial-navbar" id="top-navbar">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">{{- .Site.Title -}}</a>
|
||||
<a class="navbar-brand" href="{{ .Site.BaseURL }}">{{- .Site.Title -}}</a>
|
||||
<button
|
||||
class="navbar-toggler navbar-dark"
|
||||
id="navbar-toggler"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue