5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 17:31:42 +00:00

arreglar semillas

This commit is contained in:
f 2020-09-12 12:29:43 -03:00
parent d96dd895fa
commit 7b4ffb0b3d
2 changed files with 8 additions and 2 deletions

View file

@ -458,7 +458,13 @@ class Site < ApplicationRecord
return unless design_id_changed?
new_configuration = configuration.dup
new_configuration['theme'] = design.gem
if design.no_theme?
new_configuration['theme'] = design.gem
else
new_configuration.delete 'theme'
end
new_site = Jekyll::Site.new(new_configuration)
new_site.read
new_site.documents.map(&:read!)

View file

@ -22,6 +22,6 @@ unless Rails.env.test?
site.update licencia: Licencia.first, design: Design.first,
title: site.name, description: 'x' * 50,
deploys: [DeployLocal.new]
deploys: site.deploys.empty? ? [DeployLocal.new] : site.deploys
end
end