Skip to content

Commit fe6a243

Browse files
committed
Only show 'Last updated on ...' when last_updated defined
1 parent d674528 commit fe6a243

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python_docs_theme/layout.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ <h3>{{ _('Navigation') }}</h3>
149149
{% include "footerdonate.html" %}
150150
<br />
151151

152-
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
152+
{%- if last_updated %}
153+
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
154+
{%- endif %}
153155
{% if theme_issues_url %}{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}{% endif %}
154156
<br />
155157

0 commit comments

Comments
 (0)