arreglitos
This commit is contained in:
parent
91a87405bc
commit
e6a589a9b1
2 changed files with 7 additions and 3 deletions
|
@ -467,13 +467,17 @@ class Site < ApplicationRecord
|
|||
|
||||
new_site = Jekyll::Site.new(new_configuration)
|
||||
new_site.read
|
||||
|
||||
# No vale la pena seguir procesando si no hay artículos!
|
||||
return if new_site.documents.empty?
|
||||
|
||||
new_site.documents.map(&:read!)
|
||||
new_layouts = new_site.layouts.keys
|
||||
|
||||
old_layouts = new_site.documents.map do |doc|
|
||||
doc.data['layout']
|
||||
end.uniq.compact
|
||||
|
||||
@incompatible_layouts = old_layouts - new_layouts
|
||||
@incompatible_layouts = old_layouts - new_site.layouts.keys
|
||||
|
||||
return if @incompatible_layouts.empty?
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
description_en: "A theme with streaming support, designed for community radios"
|
||||
description_es: 'Con soporte para transmisión en vivo, pensada para radios comunitarias'
|
||||
license: 'https://0xacab.org/sutty/jekyll/radios-comunitarias-jekyll-theme/-/blob/master/LICENSE.txt'
|
||||
credits_es: 'Desarrollamos esta plantilla junto con Librenauta en una jornada de 15 horas :)'
|
||||
credits_es: 'Desarrollamos esta plantilla junto con Librenauta en 15 horas :)'
|
||||
credits_en: 'We made this template with Librenauta in 15 hours :)'
|
||||
designer_url: 'https://copiona.com/donaunbit/'
|
||||
- name_en: 'Resource toolkit'
|
||||
|
|
Loading…
Reference in a new issue