Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/404.html')
-rw-r--r--layouts/404.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..a8bb465
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+{{- partial "head.html" . -}}
+
+<body>
+ <div id="main">
+ <!-- {{- partial "nav.html" . -}} -->
+ <!-- {{- partial "header.html" . -}} -->
+ {{- block "404-main" . }}{{- end }}
+ </div>
+ <!-- {{- partial "footer.html" . -}} -->
+ <!-- {{- partial "backtotop.html" . -}} -->
+ <!-- {{- block "script" . }}{{- end }} -->
+</body>
+
+</html>
+{{ define "404-main" }}
+<article class="message is-primary is-large">
+ <div class="message-header">
+ <p>404 Page Not Found</p>
+ </div>
+ <div class="message-body">
+ 没找到该页面,请检查 url 或 <a href="/">返回首页</a>
+ </div>
+</article>
+<style>
+ .subtitle a {
+ text-decoration: underline;
+ }
+</style>
+{{ end }}