5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 01:16:21 +00:00

feat: obtener el document a partir del post indexado

This commit is contained in:
f 2023-10-06 09:57:21 -03:00
parent b928fa7bde
commit ae745b3d46
No known key found for this signature in database

View file

@ -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]