Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rcmdnk/octopress-gemoji


https://github.com/rcmdnk/octopress-gemoji

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

octopress-gemoji
================

octopress-gemoji provides "gemoji" tag to use emoji in Octopress.

:memo:
There is a similar plugin, [jekyll-emoji](https://github.com/chriskempson/jekyll-emoji), which provides filter for emoji description (such `:smile:`).

## Installation

1. Copy `plugins/gemoji.rb` to your `plugins` directory,
and `sass/plugins/_gemoji.scss` to your `sass/plugins/` directory.

1. Add a following line to `sass/plugins/_plugins.scss`:

@import "gemoji";

1. Add a line like `emoji_dir: /images/emoji` to your `_config.yml`

1. Add `gem 'gemoji'` to Gemfile and do `bundle install`.

Done!

:memo: `_egmoji.scss` has settings for `emoji` class which is used by [jekyll-emoji](https://github.com/chriskempson/jekyll-emoji), too.
`emoji_dir` and `gemoji` are also used by [jekyll-emoji](https://github.com/chriskempson/jekyll-emoji).

If you already have these settings for [jekyll-emoji](https://github.com/chriskempson/jekyll-emoji), you don't need to add them.

## Usage

Use tag `gemoji` + `emoji names`:

{% gemoji smile %}
will be :smile:.

See [EMOJI CHEAT SHEET](http://www.emoji-cheat-sheet.com/) for more emojis.

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rcmdnk/octopress-gemoji/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

## Update for gemoji-2.x

From [gemoji](https://github.com/github/gemoji) 2.X,
it changed image directory structures and names.

To update octopress-gemoji for it, you need to:

- Update octopress-gemoji to the latest version.
- Remove **source/images/emoji/** directory from your Octopress.
- Do at least 1 additional `rake generate` before the final `rake generate` for publishing.
(This is needed to copy pictures from gemoji to Octopress images directory.)