Skip to content

Commit

Permalink
Whoops! Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyfg committed May 25, 2021
1 parent 63fd8f3 commit 8fe3ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ exports.run = function (opts) {
const file = await readFile(path.join(folder, filename), 'utf8');
const matter = frontMatter(file);
// Stripping the subdirectories and markdown extension from the filename
const slug = path.baseName(filename).replace(path.extname(filename), '');
const slug = path.basename(filename).replace(path.extname(filename), '');
const hash = crypto.createHash('sha1').update(file).digest('hex');

return request
Expand Down

0 comments on commit 8fe3ee0

Please sign in to comment.