mirror of https://github.com/django/django.git
Fixed example indentation in howto/overriding-templates.txt.
This commit is contained in:
parent
5a91ad3d71
commit
bcb91611ec
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue