Skip to content

Commit

Permalink
Don't show "Edit this page" link on search page
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Jan 18, 2023
1 parent 15c8841 commit f15633a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions input/Search.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
HideFromSearchIndex: true
Excluded: => !Context.GetBool(WebKeys.GenerateSearchIndex)
ShowInNavigation: false
EditLink:
---
<form>
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion input/Shared/_RightSidebar.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</div>
</div>
}
if (editLink != null)
if (!string.IsNullOrWhiteSpace(editLink))
{
<p class="small font-weight-bold"><a href="@editLink" data-no-validate><i class="fad fa-pencil"></i> Edit This Page</a></p>
}
Expand Down

0 comments on commit f15633a

Please sign in to comment.