5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 04:36:06 +00:00

reindexar los sitios al terminar de compilarlos

para poder soportar modificaciones durante la generación del sitio
This commit is contained in:
f 2022-07-26 13:49:59 -03:00
parent eb1c12e362
commit 0d6a2c020c
4 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,19 @@
# frozen_string_literal: true
# Reindexa los artículos al terminar la compilación
class DeployReindex < Deploy
def deploy
site.reset
site.indexed_posts.destroy_all
site.index_posts!
site.touch
end
def limit
1
end
def hostname
nil
end
end

View file

@ -0,0 +1 @@
-# NADA

View file

@ -102,6 +102,10 @@ en:
title: Alternative domain name
success: Success!
error: Error
deploy_reindex:
title: Reindex
success: Success!
error: Error
help: You can contact us by replying to this e-mail
maintenance_mailer:
notice:

View file

@ -102,6 +102,10 @@ es:
title: Dominio alternativo
success: ¡Éxito!
error: Hubo un error
deploy_reindex:
title: Reindexación
success: ¡Éxito!
error: Hubo un error
help: Por cualquier duda, responde este correo para contactarte con nosotres.
maintenance_mailer:
notice: