From 4655a7a4d7313aac73b0a042f4b5edf4c1085ea9 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 14 Jul 2013 23:08:04 +0100 Subject: [PATCH] Allow wiki folders to contain a themes folder --- boot/boot.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/boot/boot.js b/boot/boot.js index 64757ac4a..67bb83d7a 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1244,6 +1244,17 @@ $tw.loadWikiTiddlers = function(wikiPath,parentPaths) { } } } + // Load any themes within the wiki folder + var wikiThemesPath = path.resolve(wikiPath,$tw.config.wikiThemesSubDir); + if(fs.existsSync(wikiThemesPath)) { + var themeFolders = fs.readdirSync(wikiThemesPath); + for(t=0; t