From 14f989b0868619bd94e29f0161478b6fc4ab8b61 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Tue, 25 May 2021 17:36:52 -0400 Subject: [PATCH] Also use current_version in layout.html --- doc/utils/sphinx-config/_themes/lammps_theme/layout.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/doc/utils/sphinx-config/_themes/lammps_theme/layout.html b/doc/utils/sphinx-config/_themes/lammps_theme/layout.html index 845f213a4c..2f31c3d56a 100644 --- a/doc/utils/sphinx-config/_themes/lammps_theme/layout.html +++ b/doc/utils/sphinx-config/_themes/lammps_theme/layout.html @@ -134,14 +134,8 @@ {% if theme_display_version %} - {%- set nav_version = version %} - {% if READTHEDOCS and current_version %} - {%- set nav_version = current_version %} - {% endif %} - {% if nav_version %} -
Version: {{ nav_version }}
+
Version: {{ current_version }}
git info: {{ release }}
- {% endif %} {% endif %} {% include "searchbox.html" %}