Skip to content
Discussion options

You must be logged in to vote

You have access to all blog post metadata, cf my answer here:
#9934 (reply in thread)

createFeedItems: async ({ blogPosts,...params }) => {
    const feedItems = await params.defaultCreateFeedItems({ blogPosts, ...params });
    feedItems.forEach(async (feedItem,index) => {
        const blogPost = blogPosts[index]!;
        const permalink = blogPost.metadata.permalink;
 		const cta = `<a href="${permalink}">see the rest of the article</a>`
        feedItem.content = feedItem.content + cta;
    });
    return feedItems;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jcubic
Comment options

Answer selected by jcubic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants