mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 02:36:10 +01:00
🎨 Global search supports pagination to display results https://github.com/siyuan-note/siyuan/issues/7948
This commit is contained in:
parent
685b7e1383
commit
1eba131624
6 changed files with 21 additions and 12 deletions
|
|
@ -196,7 +196,7 @@ func renderTemplate(p, id string) (string, error) {
|
|||
for _, arg := range args {
|
||||
stmt = strings.Replace(stmt, "?", arg, 1)
|
||||
}
|
||||
ret = sql.SelectBlocksRawStmt(stmt, Conf.Search.Limit)
|
||||
ret = sql.SelectBlocksRawStmt(stmt, 1, Conf.Search.Limit)
|
||||
return
|
||||
}
|
||||
funcMap["querySpans"] = func(stmt string, args ...string) (ret []*sql.Span) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue