major refactoring for og tags (closes #57)

This commit is contained in:
Samuel Philipp 2024-03-31 14:18:45 +02:00
parent 01104b528a
commit 40a4a44c52
25 changed files with 31 additions and 37 deletions

View file

@ -0,0 +1,5 @@
module.exports = {
service: (data) => data.services.find(s => s.id === data.service),
title: (data) => data.title || data.service?.name || "",
summary: (data) => data.summary || data.service?.summary?.[data.locale] || ""
}