|
|
|
@ -4,6 +4,8 @@ const winston = require('winston');
|
|
|
|
|
const validator = require('validator');
|
|
|
|
|
const slugify = require('../slugify');
|
|
|
|
|
|
|
|
|
|
const meta = require('../meta');
|
|
|
|
|
|
|
|
|
|
const helpers = module.exports;
|
|
|
|
|
|
|
|
|
|
helpers.try = function (middleware) {
|
|
|
|
@ -54,6 +56,8 @@ helpers.buildBodyClass = function (req, res, templateData = {}) {
|
|
|
|
|
|
|
|
|
|
parts.push(`page-status-${res.statusCode}`);
|
|
|
|
|
|
|
|
|
|
parts.push(`theme-${meta.config['theme:id'].split('-')[2]}`);
|
|
|
|
|
|
|
|
|
|
if (req.loggedIn) {
|
|
|
|
|
parts.push('user-loggedin');
|
|
|
|
|
} else {
|
|
|
|
|