diff --git a/app.js b/app.js index 45967c7..cf29ebf 100644 --- a/app.js +++ b/app.js @@ -165,12 +165,21 @@ function feedPlugin() { posts.forEach((post) => { const postUrl = `https://marcusnoble.co.uk/${post.path}/`; + + const contentKey = post.path + '/index.html'; + let renderedContent = ""; + if (files[contentKey]) { + const fullHtml = files[contentKey].contents.toString(); + const articleMatch = fullHtml.match(/