Smiley Packs - SaswatPadhi/jekyll_smilify GitHub Wiki

Creating your own smiley packs for smilify is really simple.
All you have to do is to rename the image files and specify the image format, in case it differs from GIF.

Creating a new smiley pack

  1. Create a new folder within source/images/smileys/ with the desired theme- name as folder name, and copy desired image files to the folder.
  2. Rename as many image files as you can, as per the emoticon names mentioned in the default theme file.
    The emoticon names are the left column and their pattern is on right column.

You are almost done at this step

However, you might need to do a bit more if ...

  • The extension of your image files is other than gif:

    1. Create a new file within source/_include/smileys/ with the same name as the smiley pack folder and extension yml.
    2. Add a line like this to the yml file just created.
      format: xxx
      where xxx the file type of your images.
  • There are extra images for which no name in default theme file fits:

    1. Create a new file within source/_include/smileys/ with the same name as the smiley pack folder and extension yml.
    2. Add a line like this to the yml file just created, for each new name you want to create
      name: "regex"
      where name is the name of the smiley as well as the image-file, and regex is the escaped regular expression for detecting name. So, you can now use the new smiley in your content by typing {:name:} or the unescaped version of regex.
  • You want to override the pattern for a particular smiley name:
    Exactly the same as above.

Using your new smiley pack

To use your newly created smiley pack, just change the smileytheme property in the _config.yml.

⚠️ **GitHub.com Fallback** ⚠️