Update 404 page

This commit is contained in:
Joker Qyou
2017-09-23 18:09:06 +08:00
parent a685c88eb1
commit 9e0f4aa199
2 changed files with 20 additions and 7 deletions
+16 -1
View File
@@ -1,6 +1,21 @@
{{ partial "head" . }}
<body>
404
{{ partial "header" . }}
<div class="body404">
<div class="info404">
<header id="header404" class="clearfix">
<div class="site-name404"><i>404</i></div>
</header>
<section>
<div class="title404">
<p>每一个平凡的日常<br/>都是连续发生中的奇迹</p>
</div>
<a rel="nofollow" href="{{ .Site.BaseURL }}" class="index404">回首页看看</a>
</section>
</div>
</div>
{{ partial "footer" . }}
</body>
</html>
+4 -6
View File
@@ -687,18 +687,19 @@ img.alignright {
font-size: 17px;
}
.body404{
position: absolute;
height: 100%;
width: 100%;
background:#fff url(img/404.jpg)no-repeat center top;
/*background:#fff url(img/404.jpg) no-repeat center top;*/
background: #fff;
background-size: cover;
margin: 4em 0 6em 0;
}
.site-name404 {
margin: 0 auto;
width: 3em;
text-align: center;
letter-spacing: 2px;
font:700 88px/1.2 "ff-tisa-web-pro", Cambria, "Times New Roman", Georgia, Times, sans-serif;
font-size: 74px;
}
.title404 span{
font-size: 15px;
@@ -712,11 +713,8 @@ img.alignright {
margin: 0.5em 0 .6em;
}
.info404{
position: absolute;
top: 50%;
text-align: center;
width: 100%;
margin-top: -160px;
}
#footer404{
margin-top:30px;