mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
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.
This commit is contained in:
parent
19bde653c1
commit
fc31fa0eeb
4 changed files with 41 additions and 6 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue