Hexo
How to embed LikeCoin button into Hexo
Thanks to the user εͺζ―εζεη for providing the tutorial.
Before adding the LikeCoin button, please register a Liker ID.
Function: Add LikeCoin button automatically according to the post URL
In directory themes/next/layout/_custom/
add a new file named like_coin.ejs
and paste in the following code, change the [LikerID] to your actual Like ID.
Add the LikeCoin button at the end of each post
Open themes/next/layout/_macro/post.swig
and place the like_coin.ejs
in the appropriate position:
If you do not enable the related post function, then add it after the {{ post.content }}
LikeCoin buttons will now appear on your articles.
Last updated