From 57de0f4680e52a8bf7577b1c5659145dcd3c0828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Tue, 9 Jan 2024 12:46:50 +0100 Subject: [PATCH] feat: add website outdated banner (#271) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- website/docs/overrides/main.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/docs/overrides/main.html b/website/docs/overrides/main.html index dde6ec5a..e070e95c 100644 --- a/website/docs/overrides/main.html +++ b/website/docs/overrides/main.html @@ -1,4 +1,12 @@ {% extends "base.html" %} + +{% block outdated %} + You're not viewing the latest version. + + Click here to go to latest. + +{% endblock %} + {% block extrahead %} {% set title = config.site_name %} {% if page and page.title and not page.is_homepage %}