Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配制404页面,如何配制 #73

Closed
aimer1124 opened this issue Mar 8, 2016 · 2 comments
Closed

配制404页面,如何配制 #73

aimer1124 opened this issue Mar 8, 2016 · 2 comments

Comments

@aimer1124
Copy link

RT

@tufu9441
Copy link
Owner

tufu9441 commented Mar 8, 2016

source文件夹中新建404.md,内容如下:

title: 404
layout: page
comments: false

---
### 对不起,无法找到该页。

页面将在<span id="jumpTo"></span>秒内自动跳转回[首页](https://www.haomwei.com)

<script type="text/javascript">
function countDown(secs, surl) {
    var jumpTo = document.getElementById('jumpTo');
    jumpTo.innerHTML = secs;
    if (--secs > 0) {
        setTimeout("countDown(" + secs + ",'" + surl + "')", 1000);
    } else {
        location.href = surl;
    }
}
</script>
<script type="text/javascript">countDown(7,'/');</script>

@tufu9441 tufu9441 closed this as completed Mar 9, 2016
@aimer1124
Copy link
Author

问题已解决,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants