jekyll / jemoji

GitHub-flavored emoji plugin for Jekyll
http://rubygems.org/gems/jemoji
MIT License
556 stars 61 forks source link

the same thing in html? #50

Closed clembu closed 8 years ago

clembu commented 8 years ago

Hi

I'm not asking for a new feature or whatever, the use-case is pretty limited so I just need some help and clarification.

If I have, say, a index.html file (with YAML front matter and a layout and stuff), how do I go about using emojis in it? As I understand it, these are GitHub Emojis, so it's intended to use in markup, but how would I use them in html, in a manner that would be test-able locally too?

I don't know if I'm clear, let me know if you have trouble understanding my issue.

Thanks for reading.

parkr commented 8 years ago

Hey @facelesspanda!

This plugin is intended to work in .html pages as well. If you aren't able to transform :+1: into a thumbs up <img> tag, then we should take a look at your source and figure out what the limitation is. Be sure to include it in your _config.yml:

gems:
- jemoji

Any file which is output as an HTML page should be transformed. Hope this helps!

clembu commented 8 years ago

Ah indeed, my config file had

gems:
  -  jemoji

Getting rid of those extra leading spaces did the trick.

Thanks for the reminder.