mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 20:26:22 +00:00
feat: obtener el document a partir del post indexado
This commit is contained in:
parent
b928fa7bde
commit
ae745b3d46
1 changed files with 7 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue