Skip to content

Commit b75a98d

Browse files
committed
Use config.people
1 parent 58ab8a5 commit b75a98d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ const minutesDir = path.join(dstDir, '/..');
6363
const partialsDir = ('partials' in config)
6464
? path.join(base_dir, config.partials)
6565
: path.join(base_dir, 'www/_partials/');
66+
const peoplePath = ('people' in config)
67+
? path.join(base_dir, config.people)
68+
: path.join(base_dir, 'www/people.json');
6669

6770
var htmlHeader = fs.readFileSync(
6871
path.join(partialsDir, 'header.html'), {encoding: 'utf8'});
6972
var htmlFooter = fs.readFileSync(
7073
path.join(partialsDir, 'footer.html'), {encoding: 'utf8'});
71-
var peopleJson = fs.readFileSync(
72-
path.join(base_dir, 'www/people.json'), {encoding: 'utf8'});
74+
var peopleJson = fs.readFileSync(peoplePath, {encoding: 'utf8'});
7375
var gLogData = '';
7476
var haveAudio = false;
7577
var gDate = path.basename(dstDir);

0 commit comments

Comments
 (0)