Skip to content

Commit 848e718

Browse files
Allow an arbitrary string in the logo_name option (#213)
Co-authored-by: Will Vousden <[email protected]>
1 parent 6922a16 commit 848e718

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

alabaster/about.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{% if theme_logo %}
22
<p class="logo">
33
<a href="{{ pathto(master_doc) }}">
4-
<img class="logo" src="{{ pathto('_static/' ~ theme_logo, 1) }}" alt="Logo"/>
4+
<img class="logo" src="{{ pathto('_static/' ~ theme_logo, 1) }}" alt="Logo" />
55
{% if theme_logo_name|lower == 'true' %}
66
<h1 class="logo logo-name">{{ project }}</h1>
7+
{% elif theme_logo_name %}
8+
<h1 class="logo logo-name">{{ theme_logo_name }}</h1>
79
{% endif %}
810
</a>
911
</p>

docs/customization.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ Settings related to text display, logo, etc.
9090
level Sphinx config) will be used in a text header instead. This
9191
preserves a link back to your homepage from inner doc pages.
9292

93-
* ``logo_name``: Set to ``true`` to insert your site's ``project`` name
94-
under the logo image as text. Useful if your logo doesn't include the
95-
project name itself.
93+
* ``logo_name``: Set to ``True`` to insert your site's ``project`` name
94+
under the logo image as text, or to any string to include arbitrary text.
95+
Useful if your logo doesn't include the project name itself.
9696
* ``logo_text_align``: Which CSS ``text-align`` value to use for logo text
9797
(if there is any.)
9898
* ``page_width``: CSS width specifier controlling default content/page width.

0 commit comments

Comments
 (0)