5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 08:41:42 +00:00

ignorar posts sin layout pero notificar

closes #5828

closes #3251
This commit is contained in:
f 2022-05-05 19:37:14 -03:00
parent eb1c12e362
commit 87c09323dc

View file

@ -230,6 +230,8 @@ class Site < ApplicationRecord
layout = layouts[Post.find_layout(doc.path)]
@posts[lang].build(document: doc, layout: layout, lang: lang)
rescue TypeError => e
ExceptionNotifier.notify_exception(e, data: { site: name, site_id: id, path: doc.path })
end
@posts[lang]