- Copy
content-emoji.htmlto the_includes/folder of your Jekyll site - Instead of calling
{{ content }}directly from your post layout, call{% include content-emoji.html %} - In your posts, wrap ASCII smileys in a span tag:
<span>:)</span> - Smileys will be replaced with emoji
You will also need to do some sort of feature detection to see if the browser is capable of displaying Emoji. If not, you should hide the emoji and replace it with the .noemoji fallback. There is almost certianly a better way to do this.