Module: Jekyll::LocalTheme
- Defined in:
- lib/jekyll/local_theme.rb,
lib/jekyll/local_theme/theme.rb,
lib/jekyll/local_theme/version.rb
Overview
The LocalTheme plugin for Jekyll.
Constant Summary collapse
- VERSION =
'1.0.0'
Class Method Summary collapse
Class Method Details
.init(site) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/jekyll/local_theme.rb', line 11 def init(site) path = site.config['local_theme'] return unless path theme = Theme.new(Jekyll.sanitized_path(Jekyll.sanitized_path(site.source, '_themes'), path)) site.theme = theme site.config['theme'] = theme.name Jekyll.logger.info 'Local theme:', theme.root site.send(:configure_include_paths) site.plugin_manager.require_theme_deps end |