From 444081846cf64b4d12f83faa4fae1240a0061342 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 25 Nov 2021 00:03:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=BE=A9=E6=B2=92=E6=9C=89?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20comments=20=E7=9A=84=20use=20=E6=99=82?= =?UTF-8?q?=EF=BC=8C=E6=9C=83=E5=A0=B1=E9=8C=AF=E7=9A=84=20bug=20fix:=20?= =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E9=A6=96=E9=A0=81=E7=BD=AE=E9=A0=82=E5=92=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=99=82=E9=96=93=E7=9A=84=E5=88=86=E5=89=B2?= =?UTF-8?q?=E7=B7=9A=E9=96=93=E9=9A=94=E9=A1=AF=E7=A4=BA=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/mixins/post-ui.pug | 4 ++-- package.json | 2 +- scripts/events/config.js | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/layout/includes/mixins/post-ui.pug b/layout/includes/mixins/post-ui.pug index c28740d..d2cb014 100644 --- a/layout/includes/mixins/post-ui.pug +++ b/layout/includes/mixins/post-ui.pug @@ -22,14 +22,14 @@ mixin postUI(posts) span.article-meta i.fas.fa-thumbtack.sticky span.sticky= _p('sticky') - span.article-meta__separator | + span.article-meta-separator | if (theme.post_meta.page.date_type) span.post-meta-date if (theme.post_meta.page.date_type === 'both') i.far.fa-calendar-alt span.article-meta-label=_p('post.created') time.post-meta-date-created(datetime=date_xml(article.date) title=_p('post.created') + ' ' + full_date(article.date))=date(article.date, config.date_format) - span.article-meta__separator | + span.article-meta-separator | i.fas.fa-history span.article-meta-label=_p('post.updated') time.post-meta-date-updated(datetime=date_xml(article.updated) title=_p('post.updated') + ' ' + full_date(article.updated))=date(article.updated, config.date_format) diff --git a/package.json b/package.json index 7e5536e..e37181a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "4.0.0-b10", + "version": "4.0.0-b11", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { diff --git a/scripts/events/config.js b/scripts/events/config.js index 8d4d074..bd6e05a 100644 --- a/scripts/events/config.js +++ b/scripts/events/config.js @@ -115,6 +115,8 @@ hexo.extend.filter.register('before_generate', () => { let { use } = themeConfig.comments + if (!use) return + if (typeof use === 'string') { use = use.split(',') }