Skip to content

Commit 63d35ed

Browse files
committed
Fix partialsDir fallback & summary-intro finding
Needed to fallback to scrawl directory space, not magic names in current working directory.
1 parent 27f956d commit 63d35ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ const minutesDir = path.join(dstDir, '/..');
6262

6363
const partialsDir = ('partials' in config)
6464
? path.join(base_dir, config.partials)
65-
: path.join(base_dir, 'www/_partials/');
65+
: path.join(__dirname, 'www/_partials/');
6666
const peoplePath = ('people' in config)
6767
? path.join(base_dir, config.people)
68-
: path.join(base_dir, 'www/people.json');
68+
: path.join(__dirname, 'www/people.json');
6969

7070
var htmlHeader = fs.readFileSync(
7171
path.join(partialsDir, 'header.html'), {encoding: 'utf8'});
@@ -300,7 +300,7 @@ async.waterfall([ function(callback) {
300300
}
301301

302302
const summaryIntro = fs.readFileSync(
303-
path.join(base_dir, 'www/_partials/summary-intro.html'), {encoding: 'utf8'});
303+
path.join(partialsDir, 'summary-intro.html'), {encoding: 'utf8'});
304304

305305
// write out summary file
306306
var summaryHtml = htmlHeader + '<div id="info">' + summaryIntro;

0 commit comments

Comments
 (0)