Google auto ads won't load on article post
See original GitHub issueMake sure you go through the Hexo docs, Icarus user manual, and GitHub issues to see if the bug you are reporting has been already addressed by others.
Describe the bug A clear and concise description of what the bug is.
When use old Icarus (ejs version) Google auto ads is work normally on post article but when using jsx version (inferno) Google auto ads won’t load on post article. this issue only happent on post article for the rest is work normally
System and Environment The version and configuration of Hexo and Icarus.
Icarus version that I use when open this issue is master and here is Hexo version
hexo: 5.4.0
hexo-cli: 4.2.0
os: Linux 5.4.101 linux amd64
node: 14.16.0
v8: 8.4.371.19-node.18
uv: 1.40.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.16.1
modules: 83
nghttp2: 1.41.0
napi: 7
llhttp: 2.1.3
openssl: 1.1.1j
cldr: 37.0
icu: 67.1
tz: 2020a
unicode: 13.0
- Hexo, OS, and node version (use
hexo version
command to view these information) - Site configuration file
_config.yml
- Theme configuration file
_config.icarus.yml
orthemes/icarus/_config.yml
- Any additional theme configuration files (post front-matter,
_config.post.yml
, or_config.page.yml
) - Browser and version (e.g., Firefox 70.0, Chrome Android 80.0)
To Reproduce Steps to reproduce the behavior, such as:
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- ‘…’ error appears
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Sorry I can’t give you any other advice without seeing your exact Google Adsense configuration or error information. However, you may add that line of script to layout/common/head.jsx and see if it works.
What I did at point 1 already on Icarus
https://github.com/ppoffice/hexo-theme-icarus/blob/master/layout/common/head.jsx#L163-#L164
Oke thanks a lot for your time. I think this issue also on a React too.
Oke close this issue. Thanks a lot