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

当主动指定了 permalink 时,插件似乎无法正确处理 #5

Open
LeavesWebber opened this issue Dec 28, 2024 · 1 comment
Open

Comments

@LeavesWebber
Copy link

在根目录的 _config.yml 中,我有如下配置:

permalink: :hash
permalink_defaults:
pretty_urls:
  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: true # Set to false to remove trailing '.html' from permalinks

当我在文章的 front-matter 里不指定 permalink 时,插件正常工作。
但是如果我手动填写了 permalink ,比如:

Giving_Thanks_To_Qin.md

---
title: Giving Thanks To Qin
date: 2024/12/29
permalink: uuanqin
---

Appreciation.md

........
Here is a link : [[Giving Thanks To Qin]].
......

预期中,执行 hexo s 后,链接应该被渲染成这样:
localhost:4000/uuanqin

但实际上,链接被错误的渲染成了这样:
uuanqin

我的版本:
"hexo-filter-titlebased-link": "^0.2.4"

@uuanqin
Copy link
Owner

uuanqin commented Dec 29, 2024

新版本 0.2.6 已发布,希望能解决你目前遇到的问题 :)

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