Given a post title, how to get the permalink of the post in javascript code? #5286
Unanswered
Unparalleled-Calvin
asked this question in
Question / Answer
Replies: 1 comment 3 replies
-
|
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I am writing my hexo plugin whose tag format looks like {% book_card [post_title] %}. I am confused about how to get the permalink of the post because I want to generate a hyperlink to my post from the title given by the user.
I have noticed that hexo offers tags like
post_linkto help users convet title to link, but js code can't utilize this gadget. Do you have any ideas ? Any help will be appreciated, thx.btw, the version I'm using now is 6.3.0.
Beta Was this translation helpful? Give feedback.
All reactions