-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderTransforms
Filter to run Transforms on arbitrary content (useful for RSS feeds)
#3294
Comments
I'm facing the same issue with the new Transform feature. I've tried to make this work with my RSS feed template as it currently stands, trying varying options, but I don't think there's a way to get the RSS template to generate content based on the final output-ed .html files. You can reproduce this in my website. I have a post with several images, and they are referenced using relative links in the markdown1 so they show up in markdown previews in vscode/github. They are transformed correctly using the ImageTransformPlugin (my config) which successfully rewrites the img srcs in the resulting .html2. My posts are in It makes sense to me why this happens. The feed.njk template will only generate data based what the source files provide (i.e. my Given that, I'm not sure how to work with this, but here's some possible solutions I've been brainstorming this morning (but haven't really investigated at all):
I'm open for any feedback or something I missed. Using:
Related: I can no longer use Footnotes |
Moving this to core. The root issue here is that HTML transforms don’t execute on collection item We need a way to programmatically call transforms manually, perhaps via something like a Also adding 11ty/eleventy-plugin-rss#47 related to improvements to the RSS plugin, perhaps we can do this automatically for folks if they use a virtual template for their feed. |
The Usage: {{ post.templateContent | renderTransforms }} Marginally related follow up issue for errors in Nunjucks filters: #3295 |
renderTransforms
Filter to run Transforms on arbitrary content (useful for RSS feeds)
This feature is included with the new Virtual Template method for RSS/Atom/JSON Feed creation: 11ty/eleventy-plugin-rss#47 |
Hi! Have been using the new Eleventy Transform feature on my personal site with great success but recently noticed that images in my RSS feed were missing. Upon further investigation, it seems like they aren't getting the same treatment as images in the original posts.
I tried adding xml to the
extensions
option but I guess it doesn't detect img elements within the content of the xml (which totally makes sense). Just wanted to ask if this was supported in some other way I'm not aware of? I couldn't find anything in the docs or other issues.My feed template is largely copied from the one in the eleventy-plugin-rss docs.
Happy to provide any more info that would be helpful. Thanks!
The text was updated successfully, but these errors were encountered: