Skip to content

Commit

Permalink
Merge pull request #92 from SuneRadich/master
Browse files Browse the repository at this point in the history
Node 6 support
  • Loading branch information
winstromming committed Dec 7, 2016
2 parents a6531d8 + ed1f26d commit 8d9dc78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/libs/sassdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ module.exports.files = function () {
module.exports.getData = function (file) {
return {
title: null,
slug: path.basename(file.src, path.extname(file.src[0])),
slug: path.basename(file.src[0], path.extname(file.src[0])),
href: path.relative(Sassdown.config.root, file.dest.replace(path.extname(file.src[0]), '.html')),
dest: file.dest.replace(path.extname(file.src[0]), '.html'),
src: file.src[0]
Expand Down Expand Up @@ -296,9 +296,9 @@ module.exports.readme = function () {
var file = {}, html = '';
// Fill with data
file.slug = '_index';
file.href = 'index.html';
file.href = 'index.html';
// Have a custom title?
file.title = Sassdown.config.option.title || 'Styleguide';
file.title = Sassdown.config.option.title || 'Styleguide';
file.dest = Sassdown.config.root + file.href;
// Has a README file been specified?
if (Sassdown.config.option.readme) {
Expand Down

0 comments on commit 8d9dc78

Please sign in to comment.