better link anchors
This commit is contained in:
parent
fb41dd75c4
commit
1d5dd87230
8 changed files with 26 additions and 13 deletions
|
|
@ -178,7 +178,7 @@ func (e *Engine) Search(public bool, search string) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
if res.Total == 0 {
|
||||
return "<h4>No search results</h4>", nil
|
||||
return "<b>No search results</b>", nil
|
||||
} else if res.Total == maxSearchResult {
|
||||
return "", errors.New("engine: too many search results")
|
||||
}
|
||||
|
|
@ -191,7 +191,7 @@ func (e *Engine) Search(public bool, search string) (string, error) {
|
|||
if err != nil {
|
||||
continue
|
||||
}
|
||||
html += `<h5><a href="/wiki/` + hit.ID + `">` + art.Title + "</a></h5>"
|
||||
html += `<a href="/wiki/` + hit.ID + `"><b>` + art.Title + "</b></a>"
|
||||
for fragField, frags := range hit.Fragments {
|
||||
if fragField == "title" || fragField == "search" {
|
||||
html += `<pre style="white-space: pre-wrap">`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue