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

关于生成的链接问题 #5

Closed
uuanqin opened this issue Jul 12, 2023 · 4 comments
Closed

关于生成的链接问题 #5

uuanqin opened this issue Jul 12, 2023 · 4 comments

Comments

@uuanqin
Copy link
Contributor

uuanqin commented Jul 12, 2023

博主你好!

在我的_config.yml中,永久链接格式为

permalink: p/:abbrlink/

image

但是插件转化后的地址后面没有斜杠(即使是permalink: p/:abbrlink//):

image

导致的问题是在部署到服务器的时候,不同的链接实际跳转的地址不同:

鼠标悬浮于链接时显示 实际跳转到的网页
https://www.uuanqin.top/p/f06d4de6 我的主机IP/p/f06d4de6/
https://www.uuanqin.top/p/f06d4de6/ https://www.uuanqin.top/p/f06d4de6/ (理想状况)

复现:这篇文章 https://www.uuanqin.top/p/18bbd410/ 的最后一个链接

看看能不能修复下~

另外,插件的1.1.6版本现在还是没能下载下来。重装也不行

@moelody
Copy link
Owner

moelody commented Jul 20, 2023

image
还真是奇怪的问题,我已经改成默认加上斜杆了,更新到1.1.7吧

@uuanqin
Copy link
Contributor Author

uuanqin commented Jul 20, 2023

我卸了重装后还是1.1.5

npm i hexo-link-obsidian -s

这是为啥捏,Github上保持1.1.6😥

@moelody
Copy link
Owner

moelody commented Jul 21, 2023

我卸了重装后还是1.1.5

npm i hexo-link-obsidian -s

这是为啥捏,Github上保持1.1.6😥

这和github无关,如果你有lock.json的文件请删掉后重装

@uuanqin
Copy link
Contributor Author

uuanqin commented Jul 21, 2023

成功了!
更新一下npm就行。

npm install -g npm

@uuanqin uuanqin closed this as completed Jul 21, 2023
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