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

为什么我的博客back_to_top按钮无法使用,一点击就跳转about blank #567

Closed
Icecream-blue-sky opened this issue Dec 3, 2019 · 13 comments
Labels
discussion Any questions about this theme. duplicate Topics or issues that have already been brought up by others.

Comments

@Icecream-blue-sky
Copy link

我按照作者的教程设置type:insight以使用站内搜索功能,但是好像并没有效果,当我点击搜索按钮的时候,它总是跳到一个about:blank#blocked界面,这让我非常困惑,不知道哪里出了问题,我使用的最新的hexo和icarus

@Icecream-blue-sky
Copy link
Author

我的博客网址是zoutq.com,还在搭建中

@Icecream-blue-sky Icecream-blue-sky changed the title 为什么我的博客在设置search: type:insight后不能使用站内搜索功能 为什么我的博客back_to_top按钮无法使用,一点击就跳转about blank Dec 3, 2019
@Icecream-blue-sky
Copy link
Author

我是今天开始再次重头开始搭建的,npm、hexo、icarus版本都是最新的,很幸运搜索功能好了,但是back_to_top功能却不能使用,并且我并没有做任何改动

@imaegoo
Copy link
Contributor

imaegoo commented Dec 3, 2019

Duplicates #554
我的建议是先把Hexo退到3.9.0版本,4.0.0版本的a link有问题,code highlight也有问题,等到下一个Hexo release再测试升级。
编辑package.json,修改hexo的version为3.9.0,再npm install hexo@3.9.0 --save

@Icecream-blue-sky
Copy link
Author

Duplicates #554
我的建议是先把Hexo退到3.9.0版本,4.0.0版本的a link有问题,code highlight也有问题,等到下一个Hexo release再测试升级。
编辑package.json,修改hexo的version为3.9.0,再npm install hexo@3.9.0 --save

谢谢,我试试,疑惑了很久,还以为是我不小心改错了代码

@Icecream-blue-sky
Copy link
Author

Duplicates #554
我的建议是先把Hexo退到3.9.0版本,4.0.0版本的a link有问题,code highlight也有问题,等到下一个Hexo release再测试升级。
编辑package.json,修改hexo的version为3.9.0,再npm install hexo@3.9.0 --save

哇,发现版本回退了所有东西又得重新来一遍???我的github.io界面直接404了,把除tags和categories文件夹外全删了,是我操作问题嘛2333

@ppoffice ppoffice added discussion Any questions about this theme. duplicate Topics or issues that have already been brought up by others. labels Dec 4, 2019
@stevenjoezhang
Copy link

stevenjoezhang commented Dec 4, 2019

Hexo已经修复了这一问题。正确的解决方案是等待Hexo 4.1.0发布而不是回滚到3.9.0。
hexojs/hexo#3904

另见 hexojs/hexo#3876 (comment)

@imaegoo
Copy link
Contributor

imaegoo commented Dec 5, 2019

Hexo已经修复了这一问题。正确的解决方案是等待Hexo 4.1.0发布而不是回滚到3.9.0。

@stevenjoezhang
回滚是workaround,我不知道hexo 4.1.0什么时候发布,只好先留在hexo 3.9.0了。

@stevenjoezhang
Copy link

确实,Hexo一贯办事拖沓,release也不知道要等多久; hexojs/hexo#3896

@Icecream-blue-sky
Copy link
Author

Hexo已经修复了这一问题。正确的解决方案是等待Hexo 4.1.0发布而不是回滚到3.9.0。
hexojs/hexo#3904

另见 hexojs/hexo#3876 (comment)
好像你引用的hexojs/hexo#3904和hexojs/hexo#3876 (comment)都是我在hexo issue那提出的问题23333,hexo那边让我来这边提

@Icecream-blue-sky
Copy link
Author

Hexo已经修复了这一问题。正确的解决方案是等待Hexo 4.1.0发布而不是回滚到3.9.0。

@stevenjoezhang
回滚是workaround,我不知道hexo 4.1.0什么时候发布,只好先留在hexo 3.9.0了。

你好,我按你的方法回滚,且是在博客文件夹下使用npm install hexo@3.9.0 --save命令,然后弄完后,我的博客的public文件夹下就只剩categories、tags以及content.json三个东西,别的全被删除了,这也直接导致我的博客网站404了,是我哪里操作失误吗?还是需要一些额外的操作

@imaegoo
Copy link
Contributor

imaegoo commented Dec 6, 2019

你好,我按你的方法回滚,且是在博客文件夹下使用npm install hexo@3.9.0 --save命令,然后弄完后,我的博客的public文件夹下就只剩categories、tags以及content.json三个东西,别的全被删除了,这也直接导致我的博客网站404了,是我哪里操作失误吗?还是需要一些额外的操作

请运行 hexo cleanhexo generate --debug
如果public下仍未生成静态文件,请提供您的控制台输出。

@dailyrandomphoto
Copy link

你好,我按你的方法回滚,且是在博客文件夹下使用npm install hexo@3.9.0 --save命令,然后弄完后,我的博客的public文件夹下就只剩categories、tags以及content.json三个东西,别的全被删除了,这也直接导致我的博客网站404了,是我哪里操作失误吗?还是需要一些额外的操作

Try to comment out ignore:

# _config.yml


  # Include / Exclude file(s)
  ## include:/exclude: options only apply to the 'source/' folder
  include:
  exclude:
-  ignore:
+ # ignore:

or set some values.

  ignore:
+    - "**/node_modules/**"

then

hexo clean && hexo g

@Icecream-blue-sky
Copy link
Author

你好,我按你的方法回滚,且是在博客文件夹下使用npm install hexo@3.9.0 --save命令,然后弄完后,我的博客的public文件夹下就只剩categories、tags以及content.json三个东西,别的全被删除了,这也直接导致我的博客网站404了,是我哪里操作失误吗?还是需要一些额外的操作

Try to comment out ignore:

# _config.yml


  # Include / Exclude file(s)
  ## include:/exclude: options only apply to the 'source/' folder
  include:
  exclude:
-  ignore:
+ # ignore:

or set some values.

  ignore:
+    - "**/node_modules/**"

then

hexo clean && hexo g

Thks, it really works! Also, @imaegoo 's method is a useful solution for my problem——the back_to_top button works well!You guys are really kind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Any questions about this theme. duplicate Topics or issues that have already been brought up by others.
Projects
None yet
Development

No branches or pull requests

5 participants