How to add jekyll plugin to my blog
‘Jekyll’ is awesome for the developers who are familiar with github
. This becomes easy to write blogs and share common mistakes and solutions.
###Mistakes
According to the jekyll-documentations we can include ‘plugins’ as
Add this gem to Gemfile and install it.
gem install plugin-name
Mistakes that i commited in the process
- mistaken the gem with plugin.
#_confing.yaml
plugins: [plugin-name]
- put plugins in the
_plugins
directory. - No plugin was workign as expected.
###Solutions
Either follow the given step above but that is not suitable as almost every jekyll-plugin
is
a module.
the correct way is to
-
create
_plugins' directory.
mkdir _plugins` -
in
_confing.yaml
remove all the keys related to plugins or gem. -
Just add the modules/files to the
_plugins
folder.
This is the way to work with jekyll-plugins.