Skip to content

Commit f20182f

Browse files
committed
add source path to custom meta data
1 parent b9e8281 commit f20182f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/build.js

+6
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ grunt.registerMultiTask( "build-pages", "Process html and markdown files as page
132132
content = grunt.helper( "syntax-highlight", { content: content } );
133133
}
134134

135+
post.customFields = post.customFields || [];
136+
post.customFields.push({
137+
key: "source_path",
138+
value: fileName
139+
});
140+
135141
// Write file
136142
grunt.file.write( targetFileName,
137143
"<script>" + JSON.stringify( post ) + "</script>\n" + content );

0 commit comments

Comments
 (0)