standard-welcome-page.html.twig

Theme implementation for the Standard profile welcome page.

Shown as the default front page after a fresh Standard profile installation.

Available variables:

  • attributes: HTML attributes for the containing element.
1 theme call to standard-welcome-page.html.twig
WelcomeController::welcome in core/profiles/standard/src/Controller/WelcomeController.php
Returns the welcome page render array.

File

core/profiles/standard/templates/standard-welcome-page.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation for the Standard profile welcome page.
  5. *
  6. * Shown as the default front page after a fresh Standard profile installation.
  7. *
  8. * Available variables:
  9. * - attributes: HTML attributes for the containing element.
  10. */
  11. #}
  12. {% set drupal_community = 'https://www.drupal.org/community' %}
  13. {% set drupal_values = 'https://www.drupal.org/about/values-and-principles' %}
  14. {% set drupal_cms = 'https://drupal.org/drupal-cms' %}
  15. {% set drupal_user_guide = 'https://www.drupal.org/docs/user_guide/en/index.html' %}
  16. {% set drupal_themes = 'https://www.drupal.org/project/project_theme' %}
  17. {% set add_content_type = path('node.type_add') %}
  18. {% set set_front_page = path('system.site_information_settings') %}
  19. {% set uninstall_modules = path('system.modules_uninstall') %}
  20. {% set drupal_extend = 'https://www.drupal.org/docs/extending-drupal' %}
  21. {% set drupal_events = 'https://www.drupal.org/community/events' %}
  22. {% set drupal_slack = 'https://www.drupal.org/slack' %}
  23. {% set drupal_support = 'https://www.drupal.org/support' %}
  24. {% set drupal_logo = '/' ~ (base_path ~ 'core/misc/logo/drupal-logo.svg')|trim('/') %}
  25. <div{{ attributes.addClass('welcome-page') }}>
  26. <div class="text-content">
  27. <div class="welcome-page__intro">
  28. <img class="welcome-page__logo" src="{{ drupal_logo }}" alt="{% trans %}Drupal logo{% endtrans %}">
  29. <p>{% trans %}Drupal is open source software shaped by <a href="{{ drupal_community }}">a worldwide community</a> of site builders, developers, designers, strategists, and content experts with <a href="{{ drupal_values }}">shared values</a>. Our community creates, teaches, supports, and improves Drupal together. As we like to say:{% endtrans %}</p>
  30. <blockquote>{% trans %}Come for the code, stay for the community.{% endtrans %}</blockquote>
  31. <p>{% trans %}The same community now ships two products. Drupal CMS is built on Drupal Core. You installed Core. Here is the difference:{% endtrans %}</p>
  32. </div>
  33. <div class="welcome-page__products">
  34. <section class="welcome-page__product" aria-labelledby="welcome-page-core-title">
  35. <p class="welcome-page__eyebrow">{% trans %}Installed now{% endtrans %}</p>
  36. <h2 id="welcome-page-core-title">{% trans %}Drupal Core{% endtrans %}</h2>
  37. <p>{% trans %}Drupal Core is the platform for building custom digital experiences. It gives you strong foundations: content modeling, workflows, multilingual publishing, APIs, accessibility, and security.{% endtrans %}</p>
  38. <p>{% trans %}It supports low-code and high-code projects, including headless builds, but you decide how the site is assembled. Extra setup is the tradeoff for deeper control.{% endtrans %}</p>
  39. <h3>{% trans %}Get started with the site you installed{% endtrans %}</h3>
  40. <ol>
  41. <li>{% trans %}<a href="{{ add_content_type }}">Build your content model</a> and start creating content.{% endtrans %}</li>
  42. <li>{% trans %}<a href="{{ drupal_themes }}">Pick a modern layout tool and component system</a> to shape the look of your site.{% endtrans %}</li>
  43. <li>{% trans %}<a href="{{ drupal_extend }}">Extend Drupal</a> with modules for SEO, media management, and the integrations your project needs.{% endtrans %}</li>
  44. </ol>
  45. <p>{% trans %}<a href="{{ drupal_user_guide }}">Read the User Guide</a> for a practical introduction to administering and building a Drupal site.{% endtrans %}</p>
  46. </section>
  47. <section class="welcome-page__product" aria-labelledby="welcome-page-cms-title">
  48. <p class="welcome-page__eyebrow">{% trans %}Faster start{% endtrans %}</p>
  49. <h2 id="welcome-page-cms-title">{% trans %}Drupal CMS{% endtrans %}</h2>
  50. <p>{% trans %}<a href="{{ drupal_cms }}">Drupal CMS</a> is the faster path when you want Drupal's power with more guidance. Built on Drupal Core, it ships curated defaults, recipes, and site templates that use Drupal Canvas, a modern component-based layout tool.{% endtrans %}</p>
  51. <p>{% trans %}It gets you to a working site faster: AI-assisted setup, editorial workflows, and content governance built in, helping teams launch and maintain sites without starting from a blank canvas.{% endtrans %}</p>
  52. <h3>{% trans %}Why choose Drupal CMS{% endtrans %}</h3>
  53. <ul>
  54. <li>{% trans %}Guided setup with sensible defaults.{% endtrans %}</li>
  55. <li>{% trans %}Site templates and recipes that speed delivery.{% endtrans %}</li>
  56. <li>{% trans %}AI-assisted site building and editorial workflows with people still in control.{% endtrans %}</li>
  57. <li>{% trans %}A clearer path to production-ready websites for agencies and teams.{% endtrans %}</li>
  58. </ul>
  59. </section>
  60. </div>
  61. <aside class="welcome-page__tip" aria-labelledby="welcome-page-tip-title">
  62. <div class="welcome-page__tip-content">
  63. <p id="welcome-page-tip-title" class="welcome-page__eyebrow">{% trans %}Tip{% endtrans %}</p>
  64. <p><em>{% trans %}To replace this welcome message as your site's default front page, go to <a href="{{ set_front_page }}">Basic site settings</a>. To remove this page altogether, <a href="{{ uninstall_modules }}">Uninstall the Standard profile</a>.{% endtrans %}</em></p>
  65. </div>
  66. </aside>
  67. <p>{% trans %}More questions? <a href="{{ drupal_slack }}">Chat on Slack</a>, <a href="{{ drupal_support }}">get support</a> or join at an <a href="{{ drupal_events }}">upcoming event</a>.{% endtrans %}</p>
  68. </div>
  69. </div>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.