mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 14:07:06 +08:00
✨ feat: 本地搜索支持顯示文章內容和高亮keyword
🐛 fix: 修復搜索結果在手機端無法滾動的bug 🐛 fix: 修復aside categories 查看更多跳轉到tags頁面的bug closes #188
This commit is contained in:
@@ -18,7 +18,7 @@ hexo.extend.helper.register('aside_categories', function (categories, options) {
|
||||
const depth = options.depth ? parseInt(options.depth, 10) : 0
|
||||
const orderby = options.orderby || 'name'
|
||||
const order = options.order || 1
|
||||
const tagDir = this.url_for(config.tag_dir)
|
||||
const categoryDir = this.url_for(config.category_dir)
|
||||
const limit = options.limit === 0 ? categories.length : options.limit
|
||||
const buttonLabel = this._p('aside.more_button')
|
||||
const prepareQuery = parent => {
|
||||
@@ -74,7 +74,7 @@ hexo.extend.helper.register('aside_categories', function (categories, options) {
|
||||
var moreHtml = ''
|
||||
if (categories.length <= limit) return ''
|
||||
moreHtml += '<li class="aside-category-list-item is-center">'
|
||||
moreHtml += `<a class="aside-category-list-item-more" href="${tagDir}" >`
|
||||
moreHtml += `<a class="aside-category-list-item-more" href="${categoryDir}" >`
|
||||
moreHtml += buttonLabel
|
||||
moreHtml += '</a></li>'
|
||||
return moreHtml
|
||||
|
||||
Reference in New Issue
Block a user