Jemojis in Jekyll
Why people use emoji’s escapes me, or it did, until I started using them for fast conversation and txt messaging.
A friend of mine pointed me to the emoji support on a Jekyll hosted blogs which has over 1.5million downloads from rubygems
So to use an emoji you use this syntax in the markdown:
I give this plugin two :+1:!
I give this plugin two !
How to install
Add the following to your site’s
Gemfile or if you are using the
github-pages plugin in the Gemfile, don’t add it (as it is already there)
And add the following to your site’s
plugins: - jemoji
Then I followed my blog post instructions on updating Jekyll which got the dependency
docker run --rm -v=%cd%:/srv/jekyll -it jekyll/jekyll /bin/bash bundle update
Developing locally the image urls were broken and looked like: https://assets-cdn.github.com/images/icons/emoji/unicode/1f44d.png
On live they worked looking like:
so in the
_config.yml file I put in:
emoji: src: "https://github.githubassets.com/images/icons/"