#rendercontent
Functions called renderSomething (e.g. renderContent()) are such an anti-patten in react. You just want another component at this point!
May 28, 2026 at 12:29 PM
Whew! Did you know that you can pass data to the @11ty.dev `renderContent()` filter?

You do now!

github.com/11ty/11ty-we...
Add example of passing in data to the renderContent filter by MWDelaney · Pull Request #1794 · 11ty/11ty-website
github.com
April 22, 2025 at 7:43 PM
I might need a reduced test case 😭 what about:

{% for item in components %}
{% for c in collections.components %}
{% if c.data.title | slugify == item.type %}
{{ c.data.template | renderContent("njk", { headingText: item.headingText }) }}
{% endif %}
{% endfor %}
{% endfor %}
February 14, 2025 at 10:55 PM
Functions called renderSomething (e.g. renderContent()) are such an anti-patten in react. You just want another component at this point!
May 29, 2026 at 1:13 AM
Ok. It works properly for both posts & pages now. Pages in WordPress don't have tags & categories. Posts do.

- getDetails() exits if a page is sent to it, it only runs for posts
- renderContent() only gets & shows categories & tags for posts, not pages
June 16, 2025 at 1:29 AM
Finally, consolidated renderPosts() & renderPages() into a single renderContent() because the logic was the same for both.
June 15, 2025 at 4:20 PM
The Diagnosis: The previous renderContent function split content by Double Newlines (\n\n+). However, in your source text (specifically KRNL-11.1), the Header (### Vectors...) is likely followed immediately by the List (- **Epistemic...) with only a single newline. #vibecoding #debugging
December 6, 2025 at 10:43 PM