Emojify Jekyll Markdown: GEmoji
Jekyll-emoji Plugin
jekyll-emoji
plugin is required for emojifying jekyll content using tokens like{{ ":sunglasses:" : emojify }}
in markdown of posts and pages of jekyll- First you need to copy plugin ruby file named
emoji.rb
from github to jekyll’s_plugins
directory as one time step - As jekyll-emoji liquid filter internally uses gemoji. First install gemoji ruby gem as mentioned below
- In
Gemfile
add following linegem "gemoji", "~> 2.1.0"
- Or alternatively execute
gem install gemoji
(not preffered) - Modify
_config.yml
jekyll file for plugin and configuration as
- In
#Gemoji plugin settings
emoji_dir: "/sachingpta.gitlab.io/assets/images/emoji"
#Gemoji plugin addition
gems:
- gemoji
- Note in codeblock
/sachingpta.gitlab.io
is added toemoji_dir
to shift code for gitlab./sachingpta.gitlab.io
is the name of gitlab project. emoji_dir:
reperesent paths where emotiocons are extracted and used likeemoji_dir: "/sachingpta.gitlab.io/assets/images/emoji"
- To add emoji’s anywhere in html or markdown files processed by liquid in posts or pages use tokens like
{{ ":sunglasses:" : emojify }}
- (this will not work inside _layouts folder and starting with —\r\n—)
- Use cheat sheet to find more emoji’s
Emoji Cheat Sheet
- Emoji Cheat Sheet is found at
http://www.webpagefx.com/tools/emoji-cheat-sheet/
Jekyll-emoji Demonstaration
,
,
,
,
,