-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
post_link should throw error if no slug/post found #1594
Labels
enhancement
New feature or request
Comments
Closed
Tracked in #1771 |
The proposed solution is not yet implemented. |
stevenjoezhang
changed the title
post_link should throw error id no slug/post found
post_link should throw error if no slug/post found
Mar 3, 2020
Pull Request: #4426 hexo/lib/plugins/tag/post_link.js Line 27 in c0bf222
|
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have had a few errors creep into my posts because the post_link plugin returns null if no slug or post is found. The result of this is a very hard to find missing link and text in the generated post. It may be better instead to throw an error, or at least return an anchor with an error href e.g.
The text was updated successfully, but these errors were encountered: