Adding a dump '
dd()' to parent html.html.twig template file when rendering a 'page type' page I get, among others, the following pair:
"node_type" => "page" that I can render within this very template file. When rendering an 'article type' page I get "node_type" => "article". So far so good.
Now I'd need to make use of that variable (node_type) in child template page-title.html.twig. Same dump function retrieves some other variable-value pairs but not the node_type one. I guess they're 'local variables' that are not available out of their own scope. However there may be some way to pass it from parent template but I couldn't find a straightforward simple solution to it. Any clue?
I'm using latest Drupal 9 stable release, so Twig 2 is in charge of theming.