]> Raphaël G. Git Repositories - userbundle/commitdiff
Cleanup
authorRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:06:40 +0000 (04:06 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:07:13 +0000 (04:07 +0100)
Add head block
Rename base template as fragment

templates/_base.html.twig [new file with mode: 0644]
templates/base.html.twig [deleted file]

diff --git a/templates/_base.html.twig b/templates/_base.html.twig
new file mode 100644 (file)
index 0000000..533de56
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+       <head>
+               <meta charset="UTF-8">
+               <title>{% block title %}{{ title }} - {{ site }}{% endblock %}</title>
+               {% block head %}<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><circle cx=%2264%22 cy=%2264%22 r=%2264%22 fill=%22%2300c3f9%22 /><text y=%2294%22 x=%2214%22 font-size=%22120%22 fill=%22%23139%22>ru</text></svg>">{% endblock %}
+               {% block stylesheets %}{% endblock %}
+               {% block javascripts %}{% endblock %}
+       </head>
+       <body>
+               {% block body %}
+                       <section id="rapsysuser_body">
+                               <header>
+                                       <h1><a href="{{ home_url }}">{{ site }}</a></h1>
+                               </header>
+                               {{ include('@RapsysUser/_message.html.twig') }}
+                               {% block content %}{% endblock %}
+                               {{ include('@RapsysUser/_footer.html.twig') }}
+                       </section>
+               {% endblock %}
+       </body>
+</html>
diff --git a/templates/base.html.twig b/templates/base.html.twig
deleted file mode 100644 (file)
index f6e912c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <title>{% block title %}{{ title }} - {{ site }}{% endblock %}</title>
-        <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><circle cx=%2264%22 cy=%2264%22 r=%2264%22 fill=%22%2300c3f9%22 /><text y=%2294%22 x=%2214%22 font-size=%22120%22 fill=%22%23139%22>ru</text></svg>">
-        {% block stylesheets %}{% endblock %}
-        {% block javascripts %}{% endblock %}
-    </head>
-    <body>
-        {% block body %}
-                       <section id="rapsysuser_body">
-                               <header>
-                                       <h1><a href="{{ home_url }}">{{ site }}</a></h1>
-                               </header>
-                               {{ include('@RapsysUser/_message.html.twig') }}
-                               {% block content %}{% endblock %}
-                               {{ include('@RapsysUser/_footer.html.twig') }}
-                       </section>
-               {% endblock %}
-    </body>
-</html>