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

fix: optimize the display of tags in the article #549

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

cirry
Copy link

@cirry cirry commented Apr 19, 2023

修复 #543 ,在之前的代码中,使用page.tags.toArray()来遍历文章中的标签,没有对标签进行任何处理。
而在网址中是不允许出现空格的,所以点击链接会跳转失败。
现在修改为使用Hexo提供的辅助函数list_tags()来遍历文章中的标签,此方法会对空格等一些特殊符号处理为'-'替代。
修改后的a链接展示跳转均无问题。

image

@tufu9441 tufu9441 merged commit 9d4405d into tufu9441:master Apr 20, 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

Successfully merging this pull request may close these issues.

2 participants