mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-08 12:07:06 +08:00
chore: bump version to 5.5.1 and update dependencies
- Upgrade version from 5.5.0 to 5.5.1 - Update third-party dependencies: algolia, disqusjs, docsearch, fancybox, fontawesome, mermaid - Replace Twitter with X in share configurations - Enable CDN version numbers by default - Fix shuoshuo page JSON security with safeJSON helper - Improve image lazy loading regex to handle minified HTML - Fix search result HTML structure and styling - Add margin-top to search result numbering for better alignment
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
justify-content: center
|
||||
align-items: center
|
||||
margin-right: 6px
|
||||
margin-top: 3px
|
||||
min-width: 24px
|
||||
color: $search-color
|
||||
content: attr(value) '.'
|
||||
|
||||
@@ -156,10 +156,10 @@ class LocalSearch {
|
||||
}
|
||||
|
||||
slicesOfContent.forEach(slice => {
|
||||
resultItem += `<p class="search-result">${this.highlightKeyword(content, slice)}...</p></a>`
|
||||
resultItem += `<p class="search-result">${this.highlightKeyword(content, slice)}...</p>`
|
||||
})
|
||||
|
||||
resultItem += '</li>'
|
||||
resultItem += '</a></li>'
|
||||
resultItems.push({
|
||||
item: resultItem,
|
||||
id: resultItems.length,
|
||||
|
||||
Reference in New Issue
Block a user