diff options
author | Oto Šťáva <oto.stava@gmail.com> | 2024-11-23 14:37:16 +0100 |
---|---|---|
committer | Oto Šťáva <oto.stava@gmail.com> | 2024-11-24 15:55:34 +0100 |
commit | fc31fa0eeb925dca634b2ffb64344fb58e4530fe (patch) | |
tree | 9a6a408ae3d331414c13ed5916c39b72ad238c8f /templates | |
parent | Merge pull request 'Update module github.com/stretchr/testify to v1.10.0 (for... (diff) | |
download | forgejo-fc31fa0eeb925dca634b2ffb64344fb58e4530fe.tar.xz forgejo-fc31fa0eeb925dca634b2ffb64344fb58e4530fe.zip |
Show page titles in wiki search results (#6048)
Replace wiki page filenames with page titles in the search results,
fixing the problem with them showing unreadable URI-encoded names.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/wiki/search.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/wiki/search.tmpl b/templates/repo/wiki/search.tmpl index 0bccd40840..1b774908d0 100644 --- a/templates/repo/wiki/search.tmpl +++ b/templates/repo/wiki/search.tmpl @@ -1,7 +1,7 @@ {{if .Results}} {{range .Results}} <a class="item tw-max-w-[80vw]" href="{{$.RepoLink}}/wiki/{{.Filename}}"> - <b class="tw-block tw-mb-2 tw-whitespace-break-spaces">{{.Filename}}</b> + <b class="tw-block tw-mb-2 tw-whitespace-break-spaces">{{.Title}}</b> {{range .LineCodes}} <p class="tw-my-0 tw-whitespace-break-spaces">{{.}}</p> {{end}} |