diff --git a/app/models/indexed_post.rb b/app/models/indexed_post.rb index e59e1a2f..5c4b151e 100644 --- a/app/models/indexed_post.rb +++ b/app/models/indexed_post.rb @@ -50,6 +50,13 @@ class IndexedPost < ApplicationRecord site.collections[locale.to_s] end + # Obtiene el documento + # + # @return [Jekyll::Document] + def document + @document ||= Jekyll::Document.new(full_path, site: site.jekyll, collection: collection) + end + # Convertir locale a direccionario de PG # # @param [String,Symbol]