From 1338c15d890cd07c3b892aecd2d0864a0e9feb36 Mon Sep 17 00:00:00 2001 From: hasheddan Date: Mon, 9 Aug 2021 08:58:43 -0400 Subject: [PATCH 1/2] Remove noindex meta from default layout The default layout template should not include a noindex directive. This should instead be present on docs when the documentation is out of date. Signed-off-by: hasheddan --- _layouts/default.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index e3cd369d..0f5fe143 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -16,10 +16,6 @@ - {% if currentVersion != latestVersion%} - - {% endif %} - {% include favicon.html %} From 581d683358434a419677d40c6669424510351d19 Mon Sep 17 00:00:00 2001 From: hasheddan Date: Mon, 9 Aug 2021 09:05:51 -0400 Subject: [PATCH 2/2] Add noindex meta to old docs pages Updates the docs layout template to add noindex directive to documentation that is older than the current version. Signed-off-by: hasheddan --- _layouts/docs.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_layouts/docs.html b/_layouts/docs.html index d48995b9..eff260f3 100755 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -28,6 +28,11 @@ + {% if currentVersion != latestVersion %} + + + {% endif %} + {% include favicon.html %}