Octopress自定義404頁面

關於自定義頁面在https://help.github.com/articles/custom-404-pages裏有說明。

只需要在source根目錄下創建一個自定義的404.html文件即可,需要注意的是,必須是404.html,而不能是404.markdown。

如下:

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

---
layout: page
title: "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>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章