Add LSI option for build and serve commands
This commit is contained in:
parent
4578c15a24
commit
d298e2bd57
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue