Closed Edmund1645 closed 5 years ago
It seems that these properties are present on the node
object, a few other rss options do not get generated from config like, description
, date
, and image_url
for posts
I've found a fix, it turns out the other properties are one level deeper, so i had to use node.fields.*
Do you have a short snippet to add the tags?
I have the categories from my blog posts as an array containing objects which look like this:
and in the
gridsome.config.js
file, where the categories field is underfeedItemOptions
I try to use a.map()
higher-order function to loop throughnode.tags
as queried and return an array containing only titles of the tags this time but I get an error saying:I have checked outside the config file by reducing the array in a single file component and logging to the console and that seems to work fine.