@rachelandrew Sounds like a reasonable requirement. And something that a static site generator could eat for breakfast.
Most have concept of macros or shortcodes to help with exactly this.
My tweets and posts live here on my own domain these days.
You can explore them here and follow me on Mastodon instead of Twitter where I'm not currently active.