YunYouJun / hexo-theme-yun

☁️ A fast & light & lovely theme for Hexo. 一个对可爱自以为是的 Hexo 主题。
https://yun.yunyoujun.cn
MIT License
1.39k stars 168 forks source link

[Bug Report]引用的js无法正确识别路径 #299

Closed BnqDzj closed 2 years ago

BnqDzj commented 2 years ago

Describe the bug 在head的base处添加引用 https://hk1.monika.love/PipecraftNet/jsdelivr-auto-fallback/main/index.min.js 时生成的html去请求了/h /t /t /p /s 等 QQ截图20220522145148

To Reproduce 在_config.yun.yml中配置 head: css: js: base: https://hk1.monika.love/PipecraftNet/jsdelivr-auto-fallback/main/index.min.js async:

Expected behavior 应该去请求 https://hk1.monika.love/PipecraftNet/jsdelivr-auto-fallback/main/index.min.js 而不是去请求/h /t /t /p /s 等路径

Screenshots QQ截图20220522145148 生成的html QQ截图20220522145738

Desktop (please complete the following information):

YunYouJun commented 2 years ago

You should use it like this:

head:
    js:
      base:
        - xxx

# not base: xxx