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(',') }