diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Search.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Search.cshtml index 8a2e3eb6d6..127994a24c 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Search.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Search.cshtml @@ -48,31 +48,35 @@
@foreach (var docs in Model.SearchOutputs) { -
- @functions +
+
+
+ @functions { - string RemoveFileExtensionFromPath(string path) - { - if (path == null) - { - return null; - } + string RemoveFileExtensionFromPath(string path) + { + if (path == null) + { + return null; + } - return path.EndsWith("." + @Model.Project.Format) - ? path.Left(path.Length - Model.Project.Format.Length - 1) - : path; - } - } -
- - @RemoveFileExtensionFromPath(docs.Name) - -
-
- @foreach (var highlight in docs.Highlight) - { -

@Html.Raw(highlight)

- } + return path.EndsWith("." + @Model.Project.Format) + ? path.Left(path.Length - Model.Project.Format.Length - 1) + : path; + } + } +
+ + @RemoveFileExtensionFromPath(docs.Name) + +
+
+ @foreach (var highlight in docs.Highlight) + { +

@Html.Raw(highlight)

+ } +
+
}