Octopress自定义404页面

来源:互联网 发布:linux sync用户 编辑:程序博客网 时间:2024/04/30 01:51

关于自定义页面在https://help.github.com/articles/custom-404-pages里有说明。

只需要在source根目录下创建一个自定义的404.html文件即可,需要注意的是,必须是404.html,而不能是404.markdown。

如下:

D:\octopress\source\404.html.(把YOURURL和YOUREMAIL换成自己的信息即可)

---layout: pagetitle: "Oops!"---<p>Looks like the page you’re after doesn’t exist. Guess you’re going to have to go <a target="_blank" href="http://YOURULR/">Home</a> and try again!</p><p>If you need help, feel free to contact me by emailing to YOUREMAIL!</p>


原创粉丝点击