提交 80139541 编写于 作者: E edisonxiang

add 404 for en&zh

上级 c0360ae5
......@@ -30,3 +30,9 @@ other = "NEWS"
[main_nav_news_name]
other = "News"
# 404 page
[404_title]
other = "Page Not Found"
[404_homepage]
other = "Go to Homepage"
\ No newline at end of file
......@@ -29,3 +29,9 @@ other = "新闻"
[main_nav_news_name]
other = "新闻"
# 404 page
[404_title]
other = "没有找到页面"
[404_homepage]
other = "返回主页"
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
{{ partial "head.html" . }}
<body>
<body>
<div id="all">
<header>
{{ partial "nav.html" . }}
{{ partial "nav.html" . }}
</header>
......@@ -17,20 +17,14 @@
<div class="container">
<div class="col-sm-6 col-sm-offset-3" id="error-page">
<div class="box">
<p class="text-center">
<a href="{{ .Site.BaseURL }}">
<img src="{{ .Site.Params.logo }}" alt="{{ .Title }} logo">
<h1>404</h1>
<h2 class="text-muted">{{ i18n "404_title" }}</h2>
<p class="buttons">
<a href="{{ .Site.BaseURL | relLangURL }}" class="btn btn-template-main">
<i class="fa fa-home"></i>{{ i18n "404_homepage" }}
</a>
</p>
<h3>We are sorry - this page is not here anymore</h3>
<h4 class="text-muted">Error 404 - Page not found</h4>
<p class="buttons"><a href="{{ .Site.BaseURL }}" class="btn btn-template-main"><i class="fa fa-home"></i> Go to Homepage</a>
</p>
</div>
......@@ -44,5 +38,8 @@
{{ partial "footer.html" . }}
</div>
</body>
</html>
{{ partial "scripts.html" . }}
</body>
</html>
\ No newline at end of file
......@@ -347,6 +347,10 @@ footer .notice span {
margin-bottom: 16px;
}
#error-page .box {
margin-top: 60px;
}
html {
min-width: 1280px;
max-width: 1920px;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册