mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-04 12:00:02 +00:00
Add support for setting body classes in the env
This commit is contained in:
parent
ecca0eddae
commit
2c4610a4cb
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user