Skip to content

Commit

Permalink
Fixed example indentation in howto/overriding-templates.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixxm authored and sarahboyce committed Oct 22, 2024
1 parent 5a91ad3 commit bcb9161
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/howto/overriding-templates.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit bcb9161

Please sign in to comment.