gatsby-plugin-feed: enable function values for title
, output
, and link
?
#32737
Replies: 3 comments
-
Sounds like a good idea! I also was in the need to customise the feed title in the past programmatically. Since we currently won't have time to implement this would you be interested in sending in a PR for this? Let us know if you need guidance or pointers for the start. |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Summary
I propose that
gatsby-plugin-feed
be able to accept functions fortitle
,output
, andlink
. Each of these functions would accept the result of thequery
value and return a string.Basic example
Compared to the current example configuration:
Motivation
This allows these values to be configured through the same GraphQL API that the rest of the data is in. You can store these values in JSON, YAML, or some other queryable source instead of editing
gatsby-config.js
. This will also make it easier to use with CMSes.Beta Was this translation helpful? Give feedback.
All reactions