feat: closes #11671, allow custom classes on body

res.render('myplugin', { bodyClasses: ['myplugin', 'special']});
isekai-main
Barış Soner Uşaklı 2 years ago
parent 49211815f5
commit e89cfd447e

@ -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]}`);

Loading…
Cancel
Save