Skip to content

Commit 037d213

Browse files
committed
docs: fixes an error during doc compilation
Building the docs raises an error: UndefinedError("'logo' is undefined"). This fix checks if logo is defined.
1 parent daebb3a commit 037d213

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/source/_templates/pplnx_template/layout.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@
4444
<!-- MOBILE TOP BAR OVERLOAD -->
4545
{% block mobile_nav %}
4646
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
47+
{% if logo %}
4748
<a href="{{ pathto(master_doc) }}">
48-
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="Logo"/>
49-
</a>
49+
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="Logo"/>
50+
</a>
51+
{% endif %}
5052
<a href="{{ pathto(master_doc) }}">
5153
{{ project }}
5254
</a>

0 commit comments

Comments
 (0)