volantis-x / hexo-theme-volantis

A Wonderful Theme for Hexo.
https://volantis.js.org
MIT License
1.99k stars 596 forks source link

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

Closed fightinggg closed 1 year ago

fightinggg commented 1 year ago

检查清单

需求描述

image

image

参考链接

No response

MHuiG commented 1 year ago

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

fightinggg commented 1 year ago

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

刚刚试过了,不生效

MHuiG commented 1 year ago

或者是这里的问题

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
fightinggg commented 1 year ago

或者是这里的问题

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

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

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

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
Volantis
Volantis
Volantis 是一个功能丰富、高度模块化的 Hexo 博客主题。得益于其强大的模块化特性,您可以轻松搭建一个极简风格的博客,也可以仿照官网搭建一个多人协作的、包含文档模块的大体量综合型博客。
Volantis
Volantis
Volantis 是一个功能丰富、高度模块化的 Hexo 博客主题。得益于其强大的模块化特性,您可以轻松搭建一个极简风格的博客,也可以仿照官网搭建一个多人协作的、包含文档模块的大体量综合型博客。
MHuiG commented 1 year ago

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

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

fightinggg commented 1 year ago

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

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

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

MHuiG commented 1 year ago

有一个技巧 新建一个 _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
fightinggg commented 1 year ago

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

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

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

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

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
Volantis
Volantis
Volantis 是一个功能丰富、高度模块化的 Hexo 博客主题。得益于其强大的模块化特性,您可以轻松搭建一个极简风格的博客,也可以仿照官网搭建一个多人协作的、包含文档模块的大体量综合型博客。
Volantis
Volantis
Volantis 是一个功能丰富、高度模块化的 Hexo 博客主题。得益于其强大的模块化特性,您可以轻松搭建一个极简风格的博客,也可以仿照官网搭建一个多人协作的、包含文档模块的大体量综合型博客。
MHuiG commented 1 year ago

这个等6.0重构一下,

谁帮我回滚一下commit(

fightinggg commented 1 year ago

这个等6.0重构一下,

谁帮我回滚一下commit(

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

MHuiG commented 1 year ago

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

cdn_version: false

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-actions[bot] commented 1 year ago

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

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