Awesome
Jekyll::Twemoji
Twemoji plugin for Jekyll in Pure Ruby. Powered by Twemoji.
Note this Gem does not work on GitHub Pages. You need to make a feature request to GitHub to convince them include this gem by default on GitHub Pages.
Installation
Add this in your jekyll-powered site's Gemfile
:
gem "jekyll-twemoji"
And then execute:
$ bundle
Then add this to your site's _config.yml
:
gems:
- jekyll/twemoji
Use Twemoji like you aways do:
I give this plugin :thumbsup:!
Note that in Twemoji, a :+1: is called :thumbsup:
, not :+1:
.
Configuration
Image Type
Defaults to svg
. To change to png, you need to supply image_type
and
image_size
both:
jekyll-twemoji:
image_type: "png" # defaults to "svg"
image_size: "32x32" # defaults to "16x16"
- image_type can be:
"png"
or"svg"
(default). - image_size can be:
"16x16"
(default),"32x32"
or"72x72"
.
That's it. :wink:
Attribution Requirements
Please follow the Attribution Requirements as stated on the official Twemoji project.
Contributing
- Fork it ( https://github.com/JuanitoFatas/jekyll-twemoji/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
MIT License. See LICENSE for details.