feat: closes #11671, allow custom classes on body

res.render('myplugin', { bodyClasses: ['myplugin', 'special']});
This commit is contained in:
Barış Soner Uşaklı
2023-06-02 17:30:11 -04:00
parent 49211815f5
commit e89cfd447e

View File

@@ -59,6 +59,10 @@ helpers.buildBodyClass = function (req, res, templateData = {}) {
});
}
if (templateData && templateData.bodyClasses) {
parts.push(...templateData.bodyClasses);
}
parts.push(`page-status-${res.statusCode}`);
parts.push(`theme-${meta.config['theme:id'].split('-')[2]}`);