This commit is contained in:
Daniel 2024-11-26 11:16:48 +08:00
parent 483faa93dd
commit 148a27004d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -614,11 +614,7 @@ func matchBacklinkKeyword(block *Block, keywords []string) bool {
for _, k := range keywords {
k = strings.ToLower(k)
content := block.Content
if block.IsContainerBlock() {
content = block.FContent
}
if strings.Contains(strings.ToLower(content), k) ||
if strings.Contains(strings.ToLower(block.Content), k) ||
strings.Contains(strings.ToLower(path.Base(block.HPath)), k) ||
strings.Contains(strings.ToLower(block.Name), k) ||
strings.Contains(strings.ToLower(block.Alias), k) ||