Skip to content

Commit

Permalink
Update _prefill.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwieds committed Nov 9, 2023
1 parent 93856fe commit e6bd596
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _websrc/gulp_tasks/master/_prefill.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ gulp.task('_prefill', () => {

for (var i = 0; i < firebaseAuthFiles.length; i++) {
const file = firebaseAuthFiles[i];
const remoteFile = `https://ultimate-jekyll.firebaseapp.com/${firebaseAuthPrefix}/${file.replace('.html', '')}`;
const fileNoHTML = file.replace('.html', '');
const remoteFile = `https://ultimate-jekyll.firebaseapp.com/${firebaseAuthPrefix}/${fileNoHTML}`;

// console.log(`Fetching ${remoteFile}`);

Expand All @@ -265,7 +266,7 @@ gulp.task('_prefill', () => {
if (res.ok) {
fs.write(`./special/master/scripts/firebase-auth/${file}`,
'---\n'
+ `permalink: /${firebaseAuthPrefix}/${file}\n`
+ `permalink: /${firebaseAuthPrefix}/${fileNoHTML}\n`
+ '---\n'
+ '\n'
+ await res.text()
Expand Down

0 comments on commit e6bd596

Please sign in to comment.