Get site name in custom template I want to print the site name in a custom template (page--front.html.twig)

{{ site_name }} does not work.

If I use {{ page['#title'] }} I only get "Welcome to [site_name]".

I'm looking for a way to only print the site_name. Do anyone know how to achieve this?

Thanks!
Add this to the YOUR_THEME.theme file:

function YOUR_THEME_preprocess_page(&amp;$variables) {
  $variables['site_name'] = \Drupal::config('system.site')-&gt;get('name');
}


And then this in your page--front.html.twig template:

{{ site_name }}