diff --git a/source/_templates/page.html b/source/_templates/page.html index 9236eb85d68..b989cc0a29b 100644 --- a/source/_templates/page.html +++ b/source/_templates/page.html @@ -21,20 +21,26 @@ {% endblock %} {% block body %} {% if current_version and latest_version and current_version != latest_version %} -

- - {% if current_version.name|string() in eol_versions %} - You're reading the documentation for a version of ROS 2 that has reached its EOL (end-of-life), and is no longer officially supported. - If you want up-to-date information, please have a look at {{latest_version.name | title }}. - {% elif current_version.is_released %} - You're reading the documentation for an older, but still supported, version of ROS 2. - For information on the latest version, please have a look at {{latest_version.name | title }}. - {% else %} - You're reading the documentation for a development version. - For the latest released version, please have a look at {{latest_version.name | title }}. - {% endif %} - -

+ {% set skip_message = False %} + {% if pagename == 'Contributing/Contributing-To-ROS-2-Documentation' or 'Releases/' in pagename %} + {% set skip_message = True %} + {% endif %} + {% if not skip_message %} +

+ + {% if current_version.name|string() in eol_versions %} + You're reading the documentation for a version of ROS 2 that has reached its EOL (end-of-life), and is no longer officially supported. + If you want up-to-date information, please have a look at {{latest_version.name | title }}. + {% elif current_version.is_released %} + You're reading the documentation for an older, but still supported, version of ROS 2. + For information on the latest version, please have a look at {{latest_version.name | title }}. + {% else %} + You're reading the documentation for a development version. + For the latest released version, please have a look at {{latest_version.name | title }}. + {% endif %} + +

+ {% endif %} {% endif %} {{ super() }} {% endblock %}%