From d90d74147539aab943529bad40002f4b7cb8b797 Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 27 Mar 2021 15:23:14 +0100 Subject: [PATCH] add 'auto' option for theme and make it the default value. related to #170 --- config.js.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.js.template b/config.js.template index aaf4521..e5dadd4 100644 --- a/config.js.template +++ b/config.js.template @@ -2,7 +2,7 @@ const config = { domain: process.env.DOMAIN || '127.0.0.1', // Or for example 'teddit.net' use_reddit_oauth: process.env.USE_REDDIT_OAUTH === 'true' || false, // If false, teddit uses Reddit's public API. If true, you need to have your own Reddit app ID (enter the app ID to the "reddit_app_id" config key). cert_dir: process.env.CERT_DIR || '', // For example '/home/teddit/letsencrypt/live/teddit.net', if you are using https. No trailing slash. - theme: process.env.THEME || 'dark', // One of: 'dark', 'sepia', '' + theme: process.env.THEME || 'auto', // One of: 'dark', 'sepia', 'auto', ''. Auto theme uses browser's theme detection (Dark or White theme). White theme is set by the empty the option (''). flairs_enabled: process.env.FLAIRS_ENABLED !== 'true' || true, // Enables the rendering of user and link flairs on teddit highlight_controversial: process.env.HIGHLIGHT_CONTROVERSIAL !== 'true' || true, // Enables controversial comments to be indicated by a typographical dagger (†) api_enabled: process.env.API_ENABLED !== 'true' || true, // Teddit API feature. Might increase loads significantly on your instance.