diff --git a/_plugins/siteurl.rb b/_plugins/siteurl.rb index 490bb785..ab34045c 100644 --- a/_plugins/siteurl.rb +++ b/_plugins/siteurl.rb @@ -10,6 +10,13 @@ # it'll just cause a 404. # # We can avoid all that by just emptying the site.url value on preview builds. + puts "============== Pages environment check ==============" + puts "BRANCH: . . #{ENV['BRANCH']}" + puts "OWNER: . . . #{ENV['OWNER']}" + puts "REPOSITORY: #{ENV['REPOSITORY']}" + puts "SITE_PREFIX: #{ENV['SITE_PREFIX']}" + puts "BASEURL: . . #{ENV['BASEURL']}" + branch = ENV['BRANCH'] if !(branch.nil? || branch == 'main') site.config['url'] = nil