Skip to content

Commit

Permalink
Update page variable passed to pages so it always returns a basename …
Browse files Browse the repository at this point in the history
…without an extension, fixes #173
  • Loading branch information
gakimball committed Oct 15, 2018
1 parent 863d412 commit 268e0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function render(file, enc, cb) {

// Finish by adding constants
pageData = extend(pageData, {
page: path.basename(file.path, '.html'),
page: path.basename(file.path, path.extname(file.path)),
layout: layout,
root: processRoot(file.path, this.options.root)
});
Expand Down

0 comments on commit 268e0f1

Please sign in to comment.