Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何阻止hexo自动编译? #1344

Closed
WuHuaJi0 opened this issue Jun 21, 2015 · 3 comments
Closed

如何阻止hexo自动编译? #1344

WuHuaJi0 opened this issue Jun 21, 2015 · 3 comments

Comments

@WuHuaJi0
Copy link

我们知道 hexo会将source里的文件,编译为HTML文件,并发布到public文件夹里。

那我想在站点里放一个「纯的」HTML,也就是说,我在source目录下放一个HTML文件:

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

</body>
</html>

这个文件在hexo g 之后,发布到public的文件就变成了,变成了在hexo主题大框架下的HTML,(也就是自动加上了一些样式和主题的内容)。

我的问题是,有时候我想要纯的HTML文件,如何阻止hexo对我的文件编译呢?

不知道我说清楚没有:)

@WuHuaJi0
Copy link
Author

#158
似乎这里有了一些解释,我先来试试看:)

@Xuanwo
Copy link
Contributor

Xuanwo commented Jun 21, 2015

skip_render

@WuHuaJi0
Copy link
Author

#1146 (comment)
这是个可以解决的办法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants