Skip to content

Commit

Permalink
docs: fixes an error during doc compilation
Browse files Browse the repository at this point in the history
Building the docs raises an error:
UndefinedError("'logo' is undefined").

This fix checks if logo is defined.
  • Loading branch information
hutchison committed Dec 26, 2023
1 parent daebb3a commit 037d213
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/source/_templates/pplnx_template/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@
<!-- MOBILE TOP BAR OVERLOAD -->
{% block mobile_nav %}
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
{% if logo %}
<a href="{{ pathto(master_doc) }}">
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="Logo"/>
</a>
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="Logo"/>
</a>
{% endif %}
<a href="{{ pathto(master_doc) }}">
{{ project }}
</a>
Expand Down

0 comments on commit 037d213

Please sign in to comment.