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

fix: poder mostrar la vista previa sin errores de liquid

closes #8397

closes #8263

closes #8153
This commit is contained in:
f 2022-11-09 18:44:27 -03:00
parent f582e692ef
commit b141b09ee4

View file

@ -90,6 +90,10 @@ class Post
'page' => document.to_liquid
}
# No tener errores de Liquid
site.jekyll.config['liquid']['strict_filters'] = false
site.jekyll.config['liquid']['strict_variables'] = false
# Renderizar lo estrictamente necesario y convertir a HTML para
# poder reemplazar valores.
html = Nokogiri::HTML document.renderer.render_document