1
0
mirror of https://github.com/danbee/danbarber.me synced 2025-03-04 08:59:10 +00:00

This should generate the right URL's

This commit is contained in:
Daniel Barber 2018-01-25 16:59:16 -05:00
parent a5cef57a32
commit c2ba253e37
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
3 changed files with 9 additions and 4 deletions

View File

@ -130,5 +130,8 @@ DEPENDENCIES
sass
uglifier
RUBY VERSION
ruby 2.4.2p198
BUNDLED WITH
1.16.1

View File

@ -5,7 +5,6 @@ task default: %w[build]
desc "Build the site"
task :build do
puts "Deploying for: #{site_url}"
config = Jekyll.configuration(config_params)
site = Jekyll::Site.new(config)
Jekyll::Commands::Build.build(site, config)
@ -16,9 +15,13 @@ def config_params
end
def site_url
if ENV["CONTEXT"] == "production"
if production?
ENV["URL"]
else
ENV["DEPLOY_URL"]
end || "https://danbarber.me"
end
end
def production?
ENV["CONTEXT"] == "production"
end

View File

@ -10,7 +10,6 @@ collections:
title: Uploads
output: true
url: https://danbarber.me
author: Dan Barber
markdown: Kramdown
description: Web designer and developer for thoughtbot in London. Drummer and all