Skip to content

Commit

Permalink
Add support for setting body classes in the env
Browse files Browse the repository at this point in the history
  • Loading branch information
oleeskild committed Oct 27, 2023
1 parent ecca0ed commit 2c4610a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/site/_data/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 2c4610a

Please sign in to comment.