-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
能不能对 .html 不处理 #158
Comments
这个需要在主题模板中里面处理. |
to youxiachai ,谢谢回复 layout: false -------- 11111111 然后修改 themes 里的 layout.ejs 加入你说的判断,然后 hexo genarate,可是 public 中生成的 test.html 还是被 render 了(htm->html 并且加入了头尾模板) 另外,“主题渲染的入口文件” 具体怎么做呢?我在 /usr/local/lib/node_modules/hexo/lib/ 目录仔细查看了一下几个文件。鉴于水平问题,没找出问题所在(虽然我看到了 get ext 之类的字眼,但还是没弄清楚,它们之间的调用关系) 请大家赐教。 |
https://gist.github.com/youxiachai/5424370 要不参考一下吧 而且,yaml 语法是最后三横线吧... |
谢谢 youxiachai,你说的办法的确可行。我改了个办法 http://guoshuang.com/2013/04/21/hexo-static-file/ render: ["md","markdown"] 谢谢 |
上面一次提交修复的问题,好像对在 source 目录里手动创建的 html 没作用 |
hexo 1.1.3 測試過在 html 最上方加入 layout: false
--- 是沒問題的。 |
能不能加个选择,针对README.md是不编译的,不然push到git上就成了README.html。。。 |
是呀,根目录下 想放一些 自己写的 html/md 文件,各种乱编译了,,skip_render是针对 source_dir的,更目录 就不好弄了~~~ |
貌似 skip_render不支持 直接写 skip_render:
- google1a26b0b2267d26d7.html |
和 #148 一样的问题
前几天的版本 对 source 中的 .htm .html 不处理,可以写一些自己的页面
今天升级以后就不行了 —.htm .html 文件都会被当成 .md 处理
我觉得只处理 .md 文件就好,其它 copy 到 public 就行了。
The text was updated successfully, but these errors were encountered: