hexo博客如何新建一个不依赖模板的HTML页面


一个全新空白的静态HTML页面,不需要模板配置。

node.js hexo HTML

全属性大叔 10 years, 5 months ago

 hexo new page "New Page"

aRooo answered 10 years, 5 months ago

如果你是不想 hexo g 时被模板改变你的html的话,可在在文件头加 layout: false
例如新建一个404页面


 layout: false
title: "404"
date: 2015-02-05 20:03:48
---
<html>
<head>
    <meta charset="UTF-8" />
    <title>公益404</title>
</head>
<body>
<h1>404 Page Not Found</h1>
<br>
<script type="text/javascript" src="http://www.qq.com/404/search_children.js"     charset="utf-8">
</script>
<br>
</body>
</html>

效果图

Hiumi answered 10 years, 5 months ago

Your Answer