Skip to content

Commit

Permalink
move webPath creation to static-site-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Tidwell committed Dec 5, 2015
1 parent 2fb5ec0 commit 1afdee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,5 @@ db.json
node_modules/
build/
.tmp
assets/bower_components
assets/bower_components
todo.txt
2 changes: 0 additions & 2 deletions src/processors/metadata-post.js
Expand Up @@ -12,8 +12,6 @@ module.exports = function metadataPostProcessor(writeFilesProcessor) {
var metadata = doc.metadata;
//format a date as a js date object
if (metadata.date) { metadata.date = new Date(Number(metadata.date)); }
//add a .webPath property relative to the build root
doc.webPath = doc.outputPath.replace(writeFilesProcessor.outputFolder, '');
});
}
};
Expand Down

0 comments on commit 1afdee7

Please sign in to comment.