Skip to content

Commit c69cf72

Browse files
committed
Added meta fields to randop post generator
1 parent 8dc94a8 commit c69cf72

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

add-random-posts.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ const api = new GhostAdminAPI({
5353
suffix: '\n', // Line ending, defaults to "\n" or "\r\n" (win32)
5454
units: 'paragraphs', // paragraph(s), "sentence(s)", or "word(s)"
5555
words: undefined // Array of words to draw from
56+
}),
57+
meta_title: loremIpsum({
58+
count: 4,
59+
units: 'words'
60+
}),
61+
meta_description: loremIpsum({
62+
count: 2,
63+
units: 'sentences'
5664
})
57-
5865
};
5966

6067
posts.push(post);

0 commit comments

Comments
 (0)