diff --git a/tasks/build.js b/tasks/build.js index 67357fb..754a66f 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -132,6 +132,12 @@ grunt.registerMultiTask( "build-pages", "Process html and markdown files as page content = grunt.helper( "syntax-highlight", { content: content } ); } + post.customFields = post.customFields || []; + post.customFields.push({ + key: "source_path", + value: fileName + }); + // Write file grunt.file.write( targetFileName, "\n" + content );