Add LSI option for build and serve commands

This commit is contained in:
Tom Bell 2012-12-19 16:44:03 +00:00
parent 4578c15a24
commit d298e2bd57
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ command :build do |c|
c.syntax = 'jekyll build [options]' c.syntax = 'jekyll build [options]'
c.description = 'Build your site with the option of auto-renegeration' c.description = 'Build your site with the option of auto-renegeration'
c.option '-w', '--watch', 'Watch for changes and rebuild' c.option '-w', '--watch', 'Watch for changes and rebuild'
c.option '--lsi', 'Use LSI for improved related posts'
c.action do |args, options| c.action do |args, options|
options.defaults :serving => false options.defaults :serving => false
options = Jekyll.configuration(options.__hash__) options = Jekyll.configuration(options.__hash__)
@ -50,6 +51,7 @@ command :serve do |c|
c.syntax = 'jekyll serve [options]' c.syntax = 'jekyll serve [options]'
c.description = 'Serve your site locally with the option of auto-regeneration' c.description = 'Serve your site locally with the option of auto-regeneration'
c.option '-w', '--watch', 'Watch for changes and rebuild' c.option '-w', '--watch', 'Watch for changes and rebuild'
c.option '--lsi', 'Use LSI for improved related posts'
c.option '-p', '--port [PORT]', 'Port to listen on' c.option '-p', '--port [PORT]', 'Port to listen on'
c.option '-h', '--host [HOST]', 'Host to bind to' c.option '-h', '--host [HOST]', 'Host to bind to'
c.option '-b', '--baseurl [URL]', 'Base URL' c.option '-b', '--baseurl [URL]', 'Base URL'