diff --git a/layout/includes/third-party/pangu.pug b/layout/includes/third-party/pangu.pug index b5c82c9..7ac1395 100644 --- a/layout/includes/third-party/pangu.pug +++ b/layout/includes/third-party/pangu.pug @@ -1,10 +1,10 @@ script. function panguFn () { - if (typeof pangu === 'object') pangu.spacingElementById('body-wrap') + if (typeof pangu === 'object') pangu.autoSpacingPage() else { getScript('!{url_for(theme.CDN.pangu)}') .then(() => { - pangu.spacingElementById('body-wrap') + pangu.autoSpacingPage() }) } } diff --git a/layout/includes/widget/card_archives.pug b/layout/includes/widget/card_archives.pug index 1080e28..bb0e78e 100644 --- a/layout/includes/widget/card_archives.pug +++ b/layout/includes/widget/card_archives.pug @@ -1,9 +1,5 @@ if theme.aside.card_archives.enable .card-widget.card-archives - .item-headline - i.fas.fa-archive - span= _p('aside.card_archives') - - let type = theme.aside.card_archives.type || 'monthly' - let format = theme.aside.card_archives.format || 'MMMM YYYY' - let order = theme.aside.card_archives.order || -1 diff --git a/layout/includes/widget/card_categories.pug b/layout/includes/widget/card_categories.pug index 4f69e2f..529ea55 100644 --- a/layout/includes/widget/card_categories.pug +++ b/layout/includes/widget/card_categories.pug @@ -1,7 +1,4 @@ if theme.aside.card_categories.enable if site.categories.length .card-widget.card-categories - .item-headline - i.fas.fa-folder-open - span= _p('aside.card_categories') !=aside_categories({ limit: theme.aside.card_categories.limit === 0 ? 0 : theme.aside.card_categories.limit || 8 , expand: theme.aside.card_categories.expand }) diff --git a/package.json b/package.json index 1551571..b53bdf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.6.0-b2", + "version": "3.6.0-b3", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { diff --git a/scripts/helpers/aside_archives.js b/scripts/helpers/aside_archives.js index 9112306..779c1d4 100644 --- a/scripts/helpers/aside_archives.js +++ b/scripts/helpers/aside_archives.js @@ -19,7 +19,6 @@ hexo.extend.helper.register('aside_archives', function (options = {}) { ? (yearA, monthA, yearB, monthB) => yearA === yearB && monthA === monthB : (yearA, monthA, yearB, monthB) => yearA === yearB const limit = options.limit - const moreButton = this._p('aside.more_button') let result = '' if (!format) { @@ -67,11 +66,18 @@ hexo.extend.helper.register('aside_archives', function (options = {}) { return this.url_for(url) } - result += '