-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Post meta blocks inside sentence #25448
Comments
#21932 might be related |
I think a fine line to thread here is not creating a pseudo-templating language by using fragments of dynamic data and user editable text around it. The degree of customization you might want to do is quite infinite. It'd make sense to offer more tailored blocks for some common elements — for example Byline as a separate block from Author and Category. Byline could have a few options, but it should still be making default decisions. A custom block could be provided for more novel displays. cc @mcsf for thoughts |
Agreed, this is something to avoid. It's already confusing enough that
Yeah, I think this is the way to go. In short, a Byline block providing a few choices, e.g.
Beyond these fixed options, I don't object a priori to people experimenting with an advanced control to override Byline's string, but it would need to solve a lot of upfront challenges (safe interpolation, simple implementation, and support for i18n). That last one, solving i18n, is really the hardest part. I really don't want to see |
Makes me think if — for now — we should proxy date generation to the server through a lean API endpoint. |
I wondered similarly, but we already use |
We might be able to remove some code and dependencies. |
It'd be great if we could display post meta blocks (e.g. post date, post categories, etc.) in a sentence
There are tons of different variations, but I'm sure you get the idea :)
Related: #24953
The text was updated successfully, but these errors were encountered: