From f15633a65a80994df0f4027c4bedfb9b8e790b4d Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Wed, 18 Jan 2023 21:34:51 +0100 Subject: [PATCH] Don't show "Edit this page" link on search page --- input/Search.cshtml | 1 + input/Shared/_RightSidebar.cshtml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/input/Search.cshtml b/input/Search.cshtml index 42bb5e5..437dcb5 100644 --- a/input/Search.cshtml +++ b/input/Search.cshtml @@ -1,6 +1,7 @@ HideFromSearchIndex: true Excluded: => !Context.GetBool(WebKeys.GenerateSearchIndex) ShowInNavigation: false +EditLink: ---
diff --git a/input/Shared/_RightSidebar.cshtml b/input/Shared/_RightSidebar.cshtml index 7cf599a..f6ebbf0 100644 --- a/input/Shared/_RightSidebar.cshtml +++ b/input/Shared/_RightSidebar.cshtml @@ -34,7 +34,7 @@
} - if (editLink != null) + if (!string.IsNullOrWhiteSpace(editLink)) {

Edit This Page

}