From 61904ee1a7c8e7640832b989467e13df808c3157 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Tue, 12 Jul 2022 14:53:14 +0700 Subject: [PATCH] chore: comment for pages option in config --- config.sample.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.sample.js b/config.sample.js index 7a6bd77..b142ac2 100644 --- a/config.sample.js +++ b/config.sample.js @@ -84,9 +84,14 @@ module.exports = { /* Pages to process for the frontend. + To add new pages, you may create a new Nunjucks-templated pages (.njk) in "views" directory, - or regular HTML files (.html) in "pages/custom" directory, then simply add the filename without its extension name into the array below. + + Alternatively, you may create regular HTML files (.html) in "pages/custom" directory. + If doing so, you don't need to add the filename into the array, + as any changes in said directory will be detected live. + You may even add or remove pages while lolisafe is running. */ pages: ['home', 'auth', 'dashboard', 'faq'],