mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
19 lines
438 B
JavaScript
19 lines
438 B
JavaScript
require("dotenv").config();
|
|
const axios = require("axios");
|
|
|
|
|
|
module.exports = async() => {
|
|
let themeStyle = "";
|
|
if (process.env.THEME) {
|
|
const res = await axios.get(process.env.THEME)
|
|
themeStyle = `<style>${res.data}</style>`;
|
|
}
|
|
return {
|
|
env: process.env.ELEVENTY_ENV,
|
|
theme: process.env.THEME,
|
|
themeStyle: themeStyle,
|
|
baseTheme: process.env.BASE_THEME || "dark"
|
|
}
|
|
|
|
};
|