Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jekyll_emoji_tag

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll_emoji_tag

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

jekyll_emoji_tag Gem Version

Inserts the specified emoji into the document. You can specify the size and alignment of the emoji. If you specify an emoji name that does not exist, the undefined emoji is shown.

Installation

Add this line to your Jekyll website's Gemfile, within the jekyll_plugins group:

group :jekyll_plugins do
  gem 'jekyll_emoji_tag'
end

And then execute:

$ bundle

Syntax

{% emoji OPTIONS %}

OPTIONS are:

  • align - left, right or inline (default is inline)
  • class - CSS class to apply to the generated emoji
  • div - Wrap the emoji in a <div/> instead of a <span/>
  • emoji_and_name - causes the name of the emoji to be output along with the image (default is false)
  • list - output all emojis (default is false)
  • name - name of emoji (defaults to smiley)
  • size - height of emoji (defaults to 3em)
  • style - Additional CSS styles for the generated emoji

list and name are mutually exclusive; only specify one of them.

If neither list nor name is specified, the smiley emoji is output.

The names of all supported emojis are:

angry
boom
clap
confounded
eggplant
grimace
grin
halo
horns
kiss
loudly_cry
notes
open
please
poop
rolling
sad
sax
scream
smiley
smirk
sunglasses
think
two_hearts
wink
worried
unamused
vulcan
zipper

Example Usage

{% emoji name='boom' %}
{% emoji align='right' name='grin' %}
{% emoji name='sad' size='12pt' %}
{% emoji align='right' name='horns' size='12pt' %}
{% emoji emoji_and_name name='poop' %}
{% emoji align='right' emoji_and_name name='scream' %}
{% emoji list %}
{% emoji list size='1em' %}

See the demo for more examples.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bundle exec rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.

To release a new version, run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to https://rubygems.org.

Contributing

Bug reports and pull requests are welcome at https://github.com/mslinn/jekyll_emoji_tag.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 26 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc