forked from novakr/novakr.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
26 lines (24 loc) · 908 Bytes
/
404.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
title: '404 培鸡诺特方的'
layout: page
---
<script>
var posts =
{
{% for post in site.posts %} {% if post.thread %}
"{{ post.thread }}" : "{{ post.url }}",{% endif %}{% endfor %}
};
var path = location.pathname;
if(path.charAt(path.length - 1) == '/') path = path.substring(0, path.length - 1);
var name = path.substring(path.lastIndexOf('/') + 1);
var url = posts[name];
if (url)
{
document.write("您访问的文章已经转移到新网址,正在为您转跳到 <a href=" + url + ">" + url + "</a>");
location.href = url;
}
else
{
document.write("文章或附件未找到,请转到 <a href='/categories'>分类</a> 或返回 <a href='/'>首页</a>。如有问题请联系 <a href='mailto:{{ site.email }}'>{{ site.email }}</a><iframe scrolling='no' frameborder='0' src='http://yibo.iyiyun.com/js/yibo404/key/7349' width='640' height='462' style='display:block;'></iframe>");
}
</script>