mirror of
https://github.com/danbee/danbarber.me
synced 2025-03-04 08:59:10 +00:00
20 lines
333 B
Ruby
20 lines
333 B
Ruby
# Including only the changed build task
|
|
require 'jekyll'
|
|
|
|
task default: %w[build]
|
|
|
|
desc "Build the site"
|
|
task :build do
|
|
config = Jekyll.configuration(config_params)
|
|
site = Jekyll::Site.new(config)
|
|
Jekyll::Commands::Build.build site, config
|
|
end
|
|
|
|
def config_params
|
|
if ENV["URL"]
|
|
{ url: ENV["URL"] }
|
|
else
|
|
{}
|
|
end
|
|
end
|