hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.35k stars 4.84k forks source link

hexo generate 会忽略隐藏文件 #1784

Closed Arondight closed 8 years ago

Arondight commented 8 years ago
$ file themes/hexo-theme-yelee/source/.gitignore
themes/hexo-theme-yelee/source/.gitignore: symbolic link to ../../../.gitignore
$ hexo generate
INFO  Files loaded in 1.24 s
INFO  0 files generated in 455 ms
$ ls -A public
2016/     About/                archives/  baidusitemap.xml  CNAME  fancybox/      img/        js/          tags/
404.html  apple-touch-icon.png  atom.xml   categories/       css/   font-awesome/  index.html  sitemap.xml
Arondight commented 8 years ago

其实我觉得这个issue 不处理也没啥,大不了手动推一次master 分支,不过我想着能全让hexo 管理master 分支更好一点,文件有了变化也不用重新手动推,generate 的时候就自动做了。

LanYunDev commented 2 years ago

我觉得应该给用户一个选项.例如我需要将.slugignore推送上去,但是hexo generate 和hexo push都忽略了!

renbaoshuo commented 2 years ago

@LanYunDev 请查阅文档: https://hexo.io/zh-cn/docs/configuration#%E5%8C%85%E6%8B%AC%E6%88%96%E4%B8%8D%E5%8C%85%E6%8B%AC%E7%9B%AE%E5%BD%95%E5%92%8C%E6%96%87%E4%BB%B6

LanYunDev commented 2 years ago

好的,谢谢