Skip to content

Commit 46d40a9

Browse files
committed
Add .content to resourceNodes
So e.g. transcript file could be embedded + helps with testing
1 parent e1fdacf commit 46d40a9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ssg/lib/ContentModelResourceNode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class ContentModelResourceNode extends ContentModelNode {
88
constructor(fsNode, context, settings = {}) {
99
super(fsNode, context, settings)
1010
this.slug = this.title
11+
this.content = this.fsNode.content
1112
this.permalink = this.getPermalink()
1213
this.outputPath = this.getOutputPath()
1314
this.subtreeMatchers = this.getSubtreeMatchers()

0 commit comments

Comments
 (0)