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

希望inject功能支持直接在head/footer inject代码 #373

Open
3 tasks done
tyadan opened this issue Nov 7, 2024 · 1 comment
Open
3 tasks done

希望inject功能支持直接在head/footer inject代码 #373

tyadan opened this issue Nov 7, 2024 · 1 comment

Comments

@tyadan
Copy link

tyadan commented Nov 7, 2024

Issue Checklist | Issue 检查清单

Feature Request | 功能需求

有一些代码需要特殊的加载方式,默认inject方式的话,只能支持常规方式inject css/js,建议可以在head/footer直接inject代码,这样自定义化程度高,比较方便,参考
image

Other Information | 其它信息

No response

@tyadan
Copy link
Author

tyadan commented Nov 8, 2024

更新,hexo官方支持https://hexo.io/zh-cn/api/injector Inject,通过在根目录下新建scripts文件夹后,手动注入js即可,似乎无需主题支持,默认就可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant