From d5ed3d0ba1fb73ccfc85dd04bcb183ce87d9e8ff Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 8 Apr 2020 23:15:41 +0200 Subject: [PATCH] Footer: show both "commit" and "last_updated" (if available) Closes #238. --- sphinx_rtd_theme/footer.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sphinx_rtd_theme/footer.html b/sphinx_rtd_theme/footer.html index 33fe683a9..e1b99c5a4 100644 --- a/sphinx_rtd_theme/footer.html +++ b/sphinx_rtd_theme/footer.html @@ -36,7 +36,8 @@ {# Translators: the phrase "revision" comes from Git, referring to a commit #} {% trans %}Revision{% endtrans %} {{ commit }}. - {%- elif last_updated %} + {%- endif %} + {%- if last_updated %} {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}