Module: Jekyll::LocalTheme

Defined in:
lib/jekyll/local_theme.rb,
lib/jekyll/local_theme/theme.rb,
lib/jekyll/local_theme/version.rb,
lib/jekyll/local_theme/mock_gem_specification.rb

Overview

The LocalTheme plugin for Jekyll.

Constant Summary collapse

VERSION =
'0.2.2'

Class Method Summary collapse

Class Method Details

.init(site) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/jekyll/local_theme.rb', line 12

def init(site)
  name = site.config['local_theme']
  return unless name

  site.config['theme'] = name
  site.theme = Theme.new(name, Jekyll.sanitized_path(Jekyll.sanitized_path(site.source, '_themes'), name))

  Jekyll.logger.info 'Local theme:', site.theme.root

  site.send(:configure_include_paths)
  site.plugin_manager.require_theme_deps
end