mirror of
https://github.com/danbee/danbarber.me
synced 2025-03-04 08:59:10 +00:00
Always sub URL
This commit is contained in:
parent
0af625453d
commit
3d6925b2b2
8
Rakefile
8
Rakefile
@ -8,15 +8,11 @@ task :build do
|
|||||||
puts "Deploying for: #{site_url}"
|
puts "Deploying for: #{site_url}"
|
||||||
config = Jekyll.configuration(config_params)
|
config = Jekyll.configuration(config_params)
|
||||||
site = Jekyll::Site.new(config)
|
site = Jekyll::Site.new(config)
|
||||||
Jekyll::Commands::Build.build site, config
|
Jekyll::Commands::Build.build(site, config)
|
||||||
end
|
end
|
||||||
|
|
||||||
def config_params
|
def config_params
|
||||||
if site_url
|
{ url: site_url }
|
||||||
{ url: site_url }
|
|
||||||
else
|
|
||||||
{}
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def site_url
|
def site_url
|
||||||
|
|||||||
@ -10,7 +10,6 @@ collections:
|
|||||||
title: Uploads
|
title: Uploads
|
||||||
output: true
|
output: true
|
||||||
|
|
||||||
url: https://danbarber.me
|
|
||||||
author: Dan Barber
|
author: Dan Barber
|
||||||
markdown: Kramdown
|
markdown: Kramdown
|
||||||
description: Web designer and developer for thoughtbot in London. Drummer and all
|
description: Web designer and developer for thoughtbot in London. Drummer and all
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user