From 36cbf638aa5904a13f5ecc8ab2335d60d4328338 Mon Sep 17 00:00:00 2001 From: Travis Fantina Date: Tue, 13 Feb 2024 17:40:44 -0800 Subject: [PATCH] Adds author to front matter This will likely need some configuration to enable it, I threw this together at work but if there is intrest I can add that. --- src/parser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parser.js b/src/parser.js index e1dafa9..ffca48f 100644 --- a/src/parser.js +++ b/src/parser.js @@ -110,6 +110,10 @@ function getPostCoverImageId(postData) { return id; } +function getAuthor(post) { + return post.creator[0] +} + function collectAttachedImages(channelData) { const images = getItemsOfType(channelData, 'attachment') // filter to certain image file types