Jekyll
How to embed LikeCoin button into Jekyll
Last updated
How to embed LikeCoin button into Jekyll
Last updated
Thanks to the user for providing the tutorial.
Before adding the LikeCoin button, please .
Follow the steps below:
Add liker_id
in _config.yml
and change [LikerID] into your Liker ID. It should look like this:
Define the variables in _config.yml
. The variables can be obtained in the site object using {{site.liker_id}}
Develop the LikeCoin button HTML and use the following code to insert the iframe:
Use if to inspect if liker_id
exists. Then add the code to the post template, find a place near the end of the post template and add {% include likeco.html %}
to include the LikeCoin button.
Build the website, and the LikeCoin button will be added at the end of each article. However, the size may need adjustment. The LikeCoin button will adapt itself to a width of 485px and a height of 240px. Use the following code to align it to the middle and hide the scroll bar.