MOxFIVE / hexo-theme-yelee

简而不减 Hexo 双栏博客主题; Another simple and elegant theme for Hexo.
http://moxfive.xyz/
1.38k stars 328 forks source link

How to handle 404 page #14

Closed kuncevic closed 8 years ago

kuncevic commented 8 years ago

I setup the 404 page according with the manual

  1. 404 Page:
hexo new page 404

And then set permalink: /404 in /source/404/index.md front matter.

But when I typing http://0.0.0.0:4000/not-existed-page the 404 page is not getting displayed.

image

Is there any sort fallback should be made in the source files ?

MOxFIVE commented 8 years ago

In order to make not existed link redirect to 404 page, you should deploy your site to your servers (GitHub Pages or other host).
Take my blog as an example. http://moxfive.xyz/not-existed-page

If you want to see 404 page in localhost, type: http://0.0.0.0:4000//404.html