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
.
- Create a new folder within
source/images/smileys/
with the desired theme- name as folder name, and copy desired image files to the folder. - 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.
However, you might need to do a bit more if ...
-
The extension of your image files is other than
gif
:- Create a new file within
source/_include/smileys/
with the same name as the smiley pack folder and extensionyml
. - Add a line like this to the
yml
file just created.whereformat: xxx
xxx
the file type of your images.
- Create a new file within
-
There are extra images for which no name in default theme file fits:
- Create a new file within
source/_include/smileys/
with the same name as the smiley pack folder and extensionyml
. - Add a line like this to the
yml
file just created, for each new name you want to createwherename: "regex"
name
is the name of the smiley as well as the image-file, andregex
is the escaped regular expression for detectingname
. So, you can now use the new smiley in your content by typing{:name:}
or the unescaped version ofregex
.
- Create a new file within
-
You want to override the pattern for a particular smiley name:
Exactly the same as above.
To use your newly created smiley pack, just change the smileytheme
property
in the _config.yml
.