Skip to content

Commit a6949f7

Browse files
JPechbertyJPechberty
JPechberty
authored and
JPechberty
committed
Add bootstrap 5
1 parent aa3a5bf commit a6949f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/packages/twig.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
twig:
22
default_path: '%kernel.project_dir%/templates'
3-
3+
form_themes: ['bootstrap_5_layout.html.twig']
44
when@test:
55
twig:
66
strict_variables: true

templates/base.html.twig

+2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<meta charset="UTF-8">
55
<title>{% block title %}Welcome!{% endblock %}</title>
66
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
7+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
78
{% block stylesheets %}
89
{% endblock %}
910

11+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
1012
{% block javascripts %}
1113
{% endblock %}
1214
</head>

0 commit comments

Comments
 (0)