1
0
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:
Daniel Barber 2018-01-25 14:27:39 -05:00
parent 0af625453d
commit 3d6925b2b2
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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