hexo 404公益 发表于 2018-04-06 | 更新于: 2018-07-31 | 分类于 hexo | | 阅读次数: 字数统计: 143 字 | 阅读时长 ≈ 1 分钟 在source文件夹下创建404.html,复制下面内容 12345678910111213141516171819---layout: falsetitle: "404"---<!DOCTYPE HTML><html><head> <title>404</title> <meta name="description" content="404错误,页面不存在!"> <meta http-equiv="content-type" content="text/html;charset=utf-8;"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="robots" content="all" /> <meta name="robots" content="index,follow"/></head><body><script type="text/javascript" src="//qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js" charset="utf-8" homePageUrl="/" homePageName="回到我的主页"></script></body></html> 修改next主题_config.yml文件,去掉commonweal注释,如下所示12menu: commonweal: /404/ || heartbeat 您的支持将鼓励我继续创作! 打赏 微信 支付宝