From 2c4610a4cb65692df9c0a9c39e6c84d82c5b35f9 Mon Sep 17 00:00:00 2001 From: Ole Eskild Steensen Date: Fri, 27 Oct 2023 16:15:29 +0200 Subject: [PATCH] Add support for setting body classes in the env --- src/site/_data/meta.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/site/_data/meta.js b/src/site/_data/meta.js index c1e2bfa84..a90724746 100644 --- a/src/site/_data/meta.js +++ b/src/site/_data/meta.js @@ -22,6 +22,7 @@ module.exports = async (data) => { }; const styleSettingsCss = process.env.STYLE_SETTINGS_CSS || ""; + const styleSettingsBodyClasses = process.env.STYLE_SETTINGS_BODY_CLASSES || ""; if (process.env.NOTE_ICON_TITLE && process.env.NOTE_ICON_TITLE == "true") { bodyClasses.push("title-note-icon"); @@ -51,6 +52,9 @@ module.exports = async (data) => { if (styleSettingsCss) { bodyClasses.push("css-settings-manager"); } + if (styleSettingsBodyClasses) { + bodyClasses.push(styleSettingsBodyClasses); + } let timestampSettings = { timestampFormat: process.env.TIMESTAMP_FORMAT || "MMM dd, yyyy h:mm a",