2019-08-01 23:13:38 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
String.include CoreExtensions::String::StripTags
|
2019-08-08 18:28:23 +00:00
|
|
|
Jekyll::Document.include CoreExtensions::Jekyll::Document::Path
|
2019-11-28 19:44:44 +00:00
|
|
|
|
|
|
|
# Lazy Loading de Jekyll, deshabilitando la instanciación de elementos
|
|
|
|
# que no necesitamos
|
|
|
|
#
|
|
|
|
# TODO: Aplicar monkey patches en otro lado...
|
|
|
|
module Jekyll
|
|
|
|
Site.class_eval do
|
|
|
|
def setup
|
|
|
|
ensure_not_in_dest
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Reader.class_eval do
|
|
|
|
def retrieve_posts(_); end
|
|
|
|
|
|
|
|
def retrieve_dirs(_, _, _); end
|
|
|
|
|
|
|
|
def retrieve_pages(_, _); end
|
|
|
|
|
|
|
|
def retrieve_static_files(_, _); end
|
|
|
|
end
|
|
|
|
|
|
|
|
ThemeAssetsReader.class_eval do
|
|
|
|
def read; end
|
|
|
|
end
|
|
|
|
end
|