kopia lustrzana https://github.com/wagtail/wagtail
Add favicon as an overrideable branding block - fixes #1391
rodzic
00a1402925
commit
a86b08a622
|
@ -30,6 +30,17 @@ To replace the default logo, create a template file ``dashboard/templates/wagtai
|
|||
<img src="{{ STATIC_URL }}images/custom-logo.svg" alt="Custom Project" width="80" />
|
||||
{% endblock %}
|
||||
|
||||
``branding_favicon``
|
||||
--------------------
|
||||
|
||||
To replace the favicon displayed when viewing admin pages, create a template file ``dashboard/templates/wagtailadmin/admin_base.html`` that overrides the block ``branding_favicon``::
|
||||
|
||||
{% overextends "wagtailadmin/admin_base.html" %}
|
||||
|
||||
{% block branding_favicon %}
|
||||
<link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.ico" />
|
||||
{% endblock %}
|
||||
|
||||
``branding_login``
|
||||
------------------
|
||||
|
||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 2.6 KiB |
|
@ -10,6 +10,10 @@
|
|||
{% block extra_css %}{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block branding_favicon %}
|
||||
<link rel="shortcut icon" href="{% static 'wagtailadmin/images/favicon.ico' %}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
|
||||
{% compress js %}
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
{% endcompress %}
|
||||
|
||||
{% block css %}{% endblock %}
|
||||
|
||||
{% block branding_favicon %}{% endblock %}
|
||||
</head>
|
||||
<body class="{% block bodyclass %}{% endblock %} {% if messages %}has-messages{% endif %}">
|
||||
<!--[if lt IE 9]>
|
||||
|
|
Ładowanie…
Reference in New Issue