Method: Jekyll::PluginManager#plugin_allowed?
- Defined in:
- lib/jekyll/plugin_manager.rb
#plugin_allowed?(plugin_name) ⇒ Boolean
Check whether a gem plugin is allowed to be used during this build.
plugin_name - the name of the plugin
Returns true if the plugin name is in the whitelist or if the site is not
in safe mode.
77 78 79 |
# File 'lib/jekyll/plugin_manager.rb', line 77 def plugin_allowed?(plugin_name) !site.safe || whitelist.include?(plugin_name) end |