I have another deprecated theme component that uses
api.decorateWidget("post:after", helper => {
const firstPost = helper.attrs.firstPost;
together with return h("div.myimage", [… to insert some HTML (an href) after the first post.
If I understand correctly, api.decorateWidget is also deprecated, but I can’t figure out how to do it with Glimmer. This method looks like what I need to determine if it’s the first post…
https://meta.discourse.org/t/using-plugin-outlet-connectors-from-a-theme-or-plugin/32727#p-139082-conditional-rendering-6
…but I can’t figure out what is the recommended method now to insert the HTML I need.