Home

Awesome

<p align="center"> <br> <a href="#"> <img src="logo.svg" width="100" alt="OpenMoji Jekyll Plugin"/> </a> </p> <h1 align="center">OpenMoji Jekyll Plugin</h1> <h3 align="center">Bring beautiful OpenMoji emojis to your Jekyll websites.</h3> <p align="center"> <a href="https://openmoji.org"> OpenMoji </a> is a free and open source emoji library which can be used for variety of purposes. it is licensed under CC BY-SA 4.0 . </p> <p align="center"> <a title="Open Source" href="https://opensource.com/resources/what-open-source" target="_blank"> <img src="https://img.shields.io/badge/Open%20Source-Forever-brightgreen?logo=open-source-initiative&style=flat-square" alt="Open Source"> </a> <a title="License: GPLv3" href="https://www.opensource.org/licenses/GPL-3.0" target="_blank"> <img src="https://img.shields.io/github/license/azadeh-afzar/OpenMoji-Jekyll-Plugin?logo=gnu&style=flat-square" alt="License: GPLv3"> </a> <a title="Language counter" href="#" target="_blank"> <img src="https://img.shields.io/github/languages/count/azadeh-afzar/OpenMoji-Jekyll-Plugin?logo=gitlab&style=flat-square" alt="Language counter"> </a> <a title="Top language" href="#" target="_blank"> <img src="https://img.shields.io/github/languages/top/azadeh-afzar/OpenMoji-Jekyll-Plugin?logo=gitlab&style=flat-square" alt="Top language"> </a> <br> <a title="Code Quality: Codefactor.io" href="https://www.codefactor.io/repository/github/azadeh-afzar/openMoji-jekyll-plugin" target="_blank"> <img src="https://www.codefactor.io/repository/github/azadeh-afzar/openMoji-jekyll-plugin/badge?style=flat-square" alt="CodeFactor"/> </a> <a title="Code Quality: CodeClimate.com" href="https://codeclimate.com/github/azadeh-afzar/OpenMoji-Jekyll-Plugin/maintainability" target="_blank"> <img src="https://img.shields.io/codeclimate/maintainability/azadeh-afzar/OpenMoji-Jekyll-Plugin?logo=code-climate&style=flat-square" alt="CodeClimate rating"/> </a> <a title="Code Technical Debt: CodeClimate.com" href="https://codeclimate.com/github/azadeh-afzar/OpenMoji-Jekyll-Plugin/maintainability" target="_blank"> <img src="https://img.shields.io/codeclimate/tech-debt/azadeh-afzar/OpenMoji-Jekyll-Plugin?logo=code-climate&style=flat-square" alt="CodeClimate technical debt"/> </a> <a title="Code Issues: CodeClimate.com" href="https://codeclimate.com/github/azadeh-afzar/OpenMoji-Jekyll-Plugin/maintainability" target="_blank"> <img src="https://img.shields.io/codeclimate/issues/azadeh-afzar/OpenMoji-Jekyll-Plugin?logo=code-climate&style=flat-square" alt="CodeClimate issues"/> </a> <br> <a title="GitLab: pipeline status" href="https://gitlab.com/Azadeh-Afzar/Web-Development/OpenMoji-Jekyll-Plugin/commits/master" target="_blank"> <img src="https://img.shields.io/gitlab/pipeline/Web-Development/OpenMoji-Jekyll-Plugin?gitlab_url=https%3A%2F%2Fgitlab.com%2FAzadeh-Afzar&logo=gitlab&style=flat-square" alt="pipeline status" /> </a> <a title="Test Coverage: CodeClimate.com" href="https://codeclimate.com/github/azadeh-afzar/OpenMoji-Jekyll-Plugin" target="_blank"> <img src="https://img.shields.io/codeclimate/coverage/azadeh-afzar/OpenMoji-Jekyll-Plugin?logo=code-climate&style=flat-square" alt="CodeClimate"/> </a> <br> <a title="OpenMoji Version" href="https://github.com/hfg-gmuend/openmoji/releases"> <img src="https://img.shields.io/static/v1?label=OpenMoji&message=v13.1.0&logo=github&color=red&style=flat-square" alt="OpenMoji Version"> </a> <a title="Gem Version" href="https://rubygems.org/gems/jekyll-openmoji"> <img src="https://img.shields.io/gem/v/jekyll-openmoji?color=red&label=Jekyll%20OpenMoji&logo=rubygems&style=flat-square" alt="Gem Version"> </a> <a title="jsDelivr CDN" href="https://www.jsdelivr.com/package/gh/azadeh-afzar/OpenMoji-Jekyll-Plugin"> <img src="https://data.jsdelivr.com/v1/package/gh/azadeh-afzar/OpenMoji-Jekyll-Plugin/badge" alt="jsDelivr CDN"> </a> </p>

If you are viewing this repository on GitHub, this GitHub repository is a mirror of the OpenMoji Jekyll Plugin, the main repository is served on <a href="https://gitlab.com/Azadeh-Afzar/Web-Development/OpenMoji-Jekyll-Plugin">GitLab</a>, all developments and discussions, issue tracking and merge requests take place in GitLab.

This project is a fork of <a href="https://github.com/jekyll/jemoji">Jemoji</a>.

This project is independent from <a href="https://openmoji.org">OpenMoji</a> project.

Enjoy a free open source emoji package

Use more than 3,000 emojis from OpenMoji package for free in your jekyll website. but remember to credit the OpenMoji project somewhere in your site to comply with their license.

Connect to any other emoji source

Use any available emoji package from a CDN or locally served emoji images by adding roughly 5 lines to your website's config file.

Preview

screenshot of OpenMoji Emoji preview blog

see a preview of OpenMoji emojis with their aliases.

Quick start

1. Add the following to your site's Gemfile

gem 'jekyll-openmoji'

2. Add the following to your site's _config.yml

plugins:
  - jekyll-openmoji

3. Open terminal and use bundler to install this new gem.

bundle install

4. Next steps

In any page or post, use emoji as you would normally, e.g.

I give this plugin two :thumbs_up:!

with this plugin, Jekyll will turn this markdown code (aka emoji alias) :thumbs_up: into this image: <img class="emoji" title="thumbs_up" alt="👍️" src="https://cdn.jsdelivr.net/gh/azadeh-afzar/OpenMoji-Jekyll-Plugin@latest/images/color/svg/1f44d-fe0f.svg" width="30em" height="30em" margin="0.5em"> .

to see all codes and their emoji images, see preview page.

Customizing

If you'd like to serve emoji images locally, or use a custom emoji source, you can specify so in your _config.yml file:

emoji:
  # for other emoji packs providing a src key is required.
  # images will be served from this base address
  # it must be a valid URL, if you don't provide a string to src key
  # plugin will ignore this settings and uses default settings which
  # is OpenMoji emoji pack.
  src: "https://www.emojisource.com"

  # asset key is optional.
  # it will be appended to the end of src keyword to make a complete URL,
  # if you don't provide the asset value, it will be defaulted to "emoji".
  # you can also provide an empty string "" if your source doesn't have any asset path.
  asset: "/color/png"

  # final path will be  "https://www.emojisource.com/color/png" and
  # emoji images will serve from this address.
  # in case of no asset value, final path would be  "https://www.emojisource.com/color/svg/emoji"

  # MORE CONFIGURATION OPTIONS
  # all configs below are optional.

  # default emoji image extension is svg (vector file), but if your emoji source
  # images are in other formats, you can manually override default extension by using below key
  # and specify your desired extension (png, jpg, jpeg, bmp, etc).
  extension: "png"

  # you can also provide default inline css properties for emoji images with img_attrs
  # key, keep in mind that the keys must be valid css properties like padding, margin
  # height, width, etc.
  # below is a the default settings.
  img_attrs:
    class: "emoji"
    height: "20"
    width: "20"

How it works

For all sites emoji images are served from a GitHub.com CDN, with a base URL of https://cdn.jsdelivr.net/gh/azadeh-afzar/OpenMoji-Jekyll-Plugin@latest and asset path of /images/color/svg, which results in emoji image URLs like https://cdn.jsdelivr.net/gh/azadeh-afzar/OpenMoji-Jekyll-Plugin@latest/images/color/svg/1f604.svg.

However you can alter the default path in _config.yml to serve from external sources.

Notes

Contribution

If you want to contribute to this project, please read CONTRIBUTING.

Code of Conduct

Visit the Code of Conduct.

Roadmap

Visit the Roadmap to keep track of which features we are currently working on.

License

Licensed under the GPLv3.

Attribution

  1. All default emojis designed by OpenMoji - the open source emoji and icon project. License: CC BY-SA 4.0
  2. This project is a fork of Jemoji. License: MIT