Problem/Motivation
The main objective stated in #3313520: Single-directory components in core is:
We want to simplify the front-end development workflow, and improve maintainability of core and contrib themes.
along with:
Reduce the number of framework implementation details required to put templated HTML, CSS, and JS in a Drupal page.
I think a great example for demonstrating this would be to convert Umami's node.html.twig (and once SDC is stable, perhaps the node.html.twig of other core themes or even core/modules/node/templates/node.html.twig itself) into using components.
I think node.html.twig would make for a good example because it currently has so many variables, including a bunch of Drupal "implementation details", so seeing how this can be simplified by breaking into components where each one has fewer variables and where those variables are more generic and less Drupal-specific could be quite impactful.
Steps to reproduce
Proposed resolution
Discuss if it makes sense to refactor Umami's node.html.twig to use SDC, and if so, then do it.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3e114c19a61688b5ef4e906463fc66d3.png | 477.01 KB | finnsky |
| #5 | 1e86b920f832a23fbe49e0f69faedf88.png | 411.75 KB | finnsky |
Issue fork drupal-3378588
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
effulgentsia commentedComment #5
finnsky commentedAdded badge component.

Comment #7
gauravvvv commentedComment #8
finnsky commentedAdded list component

Comment #9
smustgrave commentedSeems this was expanded, issue summary should be updated to match.
Comment #10
finnsky commentedI just added here some new optional components. Not sure what exactly this issue about.
Comment #11
finnsky commentedMoved badge component to own issue:
https://www.drupal.org/project/drupal/issues/3390334
Comment #12
finnsky commentedMoved list to own issue:
https://www.drupal.org/project/drupal/issues/3390344
Comment #13
finnsky commented@effulgentsia could you please clarify what you mean in this ticket?
Recipe or article template? Because the recipe template uses layout builder.