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
#_confing.yaml
gem: [plugin-name]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
_pluginsdirectory. - 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.yamlremove all the keys related to plugins or gem. -
Just add the modules/files to the
_pluginsfolder.
This is the way to work with jekyll-plugins.