From ed96928bf6e3b4f93d8aead58a3919db5b8469b6 Mon Sep 17 00:00:00 2001 From: Zhengyi Lai Date: Wed, 11 Sep 2024 19:27:07 +0800 Subject: [PATCH] Add an automatic redirection for a lower version Signed-off-by: Zhengyi Lai --- layouts/partials/head.html | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 791c63c7d..01fceb254 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -29,6 +29,58 @@ + + {{ if or (.IsDescendant (.GetPage "/docs")) (.InSection (.GetPage "/docs")) }} {{ end }}