theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.13k stars 2.05k forks source link

source/_data/*.styl文件不生效 #1467

Closed sweetcoffee520 closed 4 years ago

sweetcoffee520 commented 4 years ago

我尝试在styles.stly文件中添加背景图片,尽管我已经在_config.yml中取消了其中相关的注释,但是在hexo g是没有生成与此相关的文件。不论我如何修改文件,hexo g都不会显示有改动。

close-issue-app[bot] commented 4 years ago

This issue has been closed because it does not meet our Issue template. Please read our guidelines for contributing.

welcome[bot] commented 4 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

tnrzy commented 4 years ago

@sweetcoffee520 经我检验,实测有效,是您的问题

tnrzy commented 4 years ago

请问您有没有解除 next:config.yml/_data/*.styl 的注释

sweetcoffee520 commented 4 years ago

2020-04-14_101018 2020-04-14_101432 我已经修改了了override为true并取消了style的注释,然后添加了如下内容 2020-04-14_101044 之后hexo g的终端显示 2020-04-14_101307 即使我删除styles中的内容 2020-04-14_101417 再次hexo g,并没有任何变化 2020-04-14_101455

tnrzy commented 4 years ago

hexo clean (sublime不错)

sweetcoffee520 commented 4 years ago

我就是先hexo clean再hexo g的

tnrzy commented 4 years ago

所以你重新hexo clean->g->s 之后,改动实现了吗

sweetcoffee520 commented 4 years ago

没有实现,因为这个问题,我还仔细检查名字有没有输错,此外以.styl结尾的三个文件,我取消注释都没有影响,.swig就有效。我用的是vscode:smile:

tnrzy commented 4 years ago

VSC怎么变成你这样的 似乎以前有人提到过,这是hexo优先级的问题,你可以去翻翻之前的issue

sweetcoffee520 commented 4 years ago

好的,谢谢你。就是加了一些主题插件

sli1989 commented 4 years ago

missusing with background-image

body {
  background-image: url(/images/favicon.png);
}