From f20182f838a3839ebf934a8c29e0e26b4073ce97 Mon Sep 17 00:00:00 2001
From: John Paul
Date: Tue, 16 Oct 2012 13:19:32 -0400
Subject: [PATCH] add source path to custom meta data
---
tasks/build.js | 6 ++++++
1 file changed, 6 insertions(+)
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 );