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

【建议】:root配置后,css文件找不到 #793

Closed
2 tasks done
fightinggg opened this issue Jul 30, 2022 · 12 comments
Closed
2 tasks done

【建议】:root配置后,css文件找不到 #793

fightinggg opened this issue Jul 30, 2022 · 12 comments
Labels
feature-request 一个好建议 resolved 问题得以解决

Comments

@fightinggg
Copy link

fightinggg commented Jul 30, 2022

检查清单

  • 已经搜索过,没有发现类似 issue。
  • 已经阅读 hexo 官方文档,未发现原生支持。

需求描述

image

image

参考链接

No response

@fightinggg fightinggg added the feature-request 一个好建议 label Jul 30, 2022
@MHuiG
Copy link
Member

MHuiG commented Jul 30, 2022

我没试过,我猜路径需要以反斜杠结尾 /a/

@fightinggg
Copy link
Author

我没试过,我猜路径需要以反斜杠结尾 /a/

刚刚试过了,不生效

@MHuiG
Copy link
Member

MHuiG commented Jul 30, 2022

或者是这里的问题

https://github.com/volantis-x/hexo-theme-volantis/blob/dev/_config.yml#L55

GitHub
A Wonderful Theme for Hexo https://vlts.cc https://volantis.js.org - hexo-theme-volantis/_config.yml at dev · volantis-x/hexo-theme-volantis

@fightinggg
Copy link
Author

fightinggg commented Jul 30, 2022

或者是这里的问题

https://github.com/volantis-x/hexo-theme-volantis/blob/dev/_config.yml#L55

GitHub**hexo-theme-volantis/_config.yml at dev · volantis-x/hexo-theme-volantis**A Wonderful Theme for Hexo https://vlts.cc https://volantis.js.org - hexo-theme-volantis/_config.yml at dev · volantis-x/hexo-theme-volantis

刚刚试了一下,确实是这里的问题,有其他不需要用户做额外配置的办法吗

GitHub
A Wonderful Theme for Hexo https://vlts.cc https://volantis.js.org - hexo-theme-volantis/_config.yml at dev · volantis-x/hexo-theme-volantis
Volantis
Volantis 是一个功能丰富、高度模块化的 Hexo 博客主题。得益于其强大的模块化特性,您可以轻松搭建一个极简风格的博客,也可以仿照官网搭建一个多人协作的、包含文档模块的大体量综合型博客。
Volantis
Volantis 是一个功能丰富、高度模块化的 Hexo 博客主题。得益于其强大的模块化特性,您可以轻松搭建一个极简风格的博客,也可以仿照官网搭建一个多人协作的、包含文档模块的大体量综合型博客。

@MHuiG
Copy link
Member

MHuiG commented Jul 30, 2022

有的,直接删掉这一行就是自动配置

写上这一行就把自动配置覆盖了

@fightinggg
Copy link
Author

有的,直接删掉这一行就是自动配置

写上这一行就把自动配置覆盖了

这个文件在主题文件夹下,用户的配置里面没有这个文件

@MHuiG
Copy link
Member

MHuiG commented Jul 30, 2022

有一个技巧
新建一个 _config.volantis.yml 文件覆盖主题的配置

https://github.com/volantis-x/community/blob/main/_config.volantis.yml

GitHub
Volantis Community 社区主页 https://vlts.cc https://volantis.js.org - community/_config.volantis.yml at main · volantis-x/community

@fightinggg
Copy link
Author

fightinggg commented Jul 30, 2022

有一个技巧 新建一个 _config.volantis.yml 文件覆盖主题的配置

https://github.com/volantis-x/community/blob/main/_config.volantis.yml

GitHub**community/_config.volantis.yml at main · volantis-x/community**Volantis Community 社区主页 https://vlts.cc https://volantis.js.org - community/_config.volantis.yml at main · volantis-x/community

可以,但是建议把主题文件夹里面的默认配置改一下

GitHub
Volantis Community 社区主页 https://vlts.cc https://volantis.js.org - community/_config.volantis.yml at main · volantis-x/community
Volantis
Volantis 是一个功能丰富、高度模块化的 Hexo 博客主题。得益于其强大的模块化特性,您可以轻松搭建一个极简风格的博客,也可以仿照官网搭建一个多人协作的、包含文档模块的大体量综合型博客。
Volantis
Volantis 是一个功能丰富、高度模块化的 Hexo 博客主题。得益于其强大的模块化特性,您可以轻松搭建一个极简风格的博客,也可以仿照官网搭建一个多人协作的、包含文档模块的大体量综合型博客。

@MHuiG
Copy link
Member

MHuiG commented Jul 30, 2022

这个等6.0重构一下,

谁帮我回滚一下commit(

@fightinggg
Copy link
Author

这个等6.0重构一下,

谁帮我回滚一下commit(

为啥通过加载主题源码构建出的blog,css文件不太一样,中间多了个数字,看看这个是不是同一个原因
image

@MHuiG MHuiG mentioned this issue Jul 30, 2022
8 tasks
@MHuiG
Copy link
Member

MHuiG commented Jul 30, 2022

https://github.com/volantis-x/hexo-theme-volantis/blob/dev/_config.yml#L59

cdn_version: false

GitHub
A Wonderful Theme for Hexo https://vlts.cc https://volantis.js.org - hexo-theme-volantis/_config.yml at dev · volantis-x/hexo-theme-volantis

MHuiG added a commit that referenced this issue Aug 15, 2022
MHuiG added a commit that referenced this issue Aug 15, 2022
MHuiG added a commit that referenced this issue Aug 15, 2022
@MHuiG MHuiG added the resolved 问题得以解决 label Aug 15, 2022
@github-actions
Copy link
Contributor

👋 Hello,
This issue has been marked as resolved. If there are other issues, please contact us with a new issue.

👋 您好,
此 issue 已经被标记为已解决,如果还有其它问题,请提出新的 issue 联系我们。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request 一个好建议 resolved 问题得以解决
Projects
None yet
Development

No branches or pull requests

2 participants