mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:46:21 +00:00
deshabilitar la lectura de ciertos archivos
This commit is contained in:
parent
fe5881069c
commit
57457cfcc8
1 changed files with 26 additions and 2 deletions
|
@ -1,6 +1,30 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'jekyll/document'
|
|
||||||
|
|
||||||
String.include CoreExtensions::String::StripTags
|
String.include CoreExtensions::String::StripTags
|
||||||
Jekyll::Document.include CoreExtensions::Jekyll::Document::Path
|
Jekyll::Document.include CoreExtensions::Jekyll::Document::Path
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue