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

使用fluid的注入代码后未生效,但是hexo注入代码可以使用 #1143

Open
xsxz01 opened this issue Oct 16, 2024 · 3 comments
Open

Comments

@xsxz01
Copy link

xsxz01 commented Oct 16, 2024

请确认

问题描述

使用fluid的注入代码后未生效,但是hexo注入代码可以使用。

详情如下图,我需要加一个meta标签才能实现加载跨域图片,因此打算使用fluid的进阶功能,注入一段代码,但是经过实际测试,fluid的注入功能未能生效,但是hexo提供的注入功能是可以正常使用的。

控制台尚未出现关于此部分相关的异常,图中的错误与此无关。

依赖和hexo版本

{
// ...
  "hexo": {
    "version": "7.3.0"
  },
  "dependencies": {
    "g": "^2.0.1",
    "hexo": "^7.3.0",
    "hexo-cli": "^4.3.2",
    "hexo-deployer-git": "^4.0.0",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-baidu-sitemap": "^0.1.9",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-index": "^4.0.0",
    "hexo-generator-sitemap": "^3.0.1",
    "hexo-generator-tag": "^2.0.0",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-marked": "^6.3.0",
    "hexo-renderer-stylus": "^3.0.1",
    "hexo-server": "^3.0.0",
    "hexo-submit-urls-to-search-engine": "^2.1.0",
    "hexo-theme-fluid": "^1.9.8",
    "hexo-theme-landscape": "^1.0.0"
  }
}

如果还需要其他信息,请在下方评论。

@zkqiang
Copy link
Member

zkqiang commented Nov 11, 2024

image

没有复现出来,但也看不出你的问题出在哪...

@xsxz01
Copy link
Author

xsxz01 commented Nov 13, 2024

image 没有复现出来,但也看不出你的问题出在哪...

我刚才再次试了一下,还是同样的问题,跟你一样的代码,就是出不来,只能用hexo自带的注入,这个问题还可能是因为什么?

@zkqiang
Copy link
Member

zkqiang commented Nov 13, 2024

我刚才再次试了一下,还是同样的问题,跟你一样的代码,就是出不来,只能用hexo自带的注入,这个问题还可能是因为什么?

目前确实看不出什么问题,你可以另外建一个新的 blog 目录来慢慢排查下

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

No branches or pull requests

2 participants