summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2024-10-22 11:06:34 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-10-22 13:10:13 +0200
commit60dc9c288cf0f5e906b022e1ff77bea8a7c4ab19 (patch)
treeb89e359141dad252110b979ab9d3361a6c1768b4
parent6eb6f236f2836db94a27dff76d1663dfb682b4ea (diff)
[5.1.x] Fixed example indentation in howto/overriding-templates.txt.
Backport of bcb91611eca154f022211633fe485e3e1a3c608d from main.
-rw-r--r--docs/howto/overriding-templates.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/howto/overriding-templates.txt b/docs/howto/overriding-templates.txt
index f636948a20..f99a1203a8 100644
--- a/docs/howto/overriding-templates.txt
+++ b/docs/howto/overriding-templates.txt
@@ -111,15 +111,15 @@ reimplement the entire template.
For example, you can use this technique to add a custom logo to the
``admin/base_site.html`` template:
- .. code-block:: html+django
- :caption: ``templates/admin/base_site.html``
+.. code-block:: html+django
+ :caption: ``templates/admin/base_site.html``
- {% extends "admin/base_site.html" %}
+ {% extends "admin/base_site.html" %}
- {% block branding %}
- <img src="link/to/logo.png" alt="logo">
- {{ block.super }}
- {% endblock %}
+ {% block branding %}
+ <img src="link/to/logo.png" alt="logo">
+ {{ block.super }}
+ {% endblock %}
Key points to note: