Search code examples
githubjekyllemoji

Emoji for jekyll


I've built a site on Github pages with Jekyll. Recently I tried running an emoji_for_jekyll plugin. When I build and run the site locally, it seems to work. However, when I commit and view it online the emoji disappear and all that's left is the syntax (:smile:)

Here is a page on my site http://joshuahouston.github.io/code/2014/12/10/the-emoji-test.html

This is the resource I've followed. The 3 steps seem easy enough.

Install the emoji_for_jekyll gem:

gem install emoji_for_jekyll
Add emoji_for_jekyll to the list of gems in config.yml:

gems: ["emoji_for_jekyll"]
See beautiful emoji!
or

Copy emoji_for_jekll.rb and emoji.json into the _plugins directory

And you can view my site's pages on Github and they're even working there! https://github.com/joshuahouston/joshuahouston.github.io/blob/master/_posts/2014-12-10-the-emoji-test.markdown

Do you know what I'm missing? Why aren't the pages being generated correctly for the site but correctly elsewhere? Thank you.


Solution

  • Not all plugins can be run on Gitub pages (see documentation here).

    If you want to use emojies on your gh-pages, you'll have to use parkr jemoji.

    • gem install jemoji
    • remove your _plugins folder content
    • change gems in _config.yml to gems: ["jemoji"]
    • test with a jekyll serve
    • push to Github
    • be happy ;-)