You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Comments: Make it possible to create a "X replies to post title" heading #40264
You can kind of hack it with a Row containing Paragraphs, Post Comments Count, and Post Title blocks:
There are a couple of issues with this approach:
Typography controls across blocks are inconsistent, so it's difficult to create a harmonious appearance
It's not possible to conditionally pluralise reply/replies in order to avoid the awkward "There are 1 comments" / "There are 32 comment".
It would seem relatively simple to address these issues. For example we could update the Post Comments Count block to include an option to also display a label so that the pluralisation logic is built into that block.
Alternatively we might consider a dedicated Comments Heading block.
Activity
justintadlock commentedon Apr 17, 2022
I put together a rough block plugin for this: https://github.com/x3p0-dev/x3p0-comments-title
It needs an icon. I'd be happy to test out variations on it.
cbravobernal commentedon Apr 18, 2022
Hi @justintadlock
I added a PR to add the block in Core. I will take some code from your plugin. Feel free to edit or add comments to the PR!