fix: 修復沒有配置 comments 的 use 時,會報錯的 bug

fix: 修復首頁置頂和更新時間的分割線間隔顯示問題
This commit is contained in:
Jerry
2021-11-25 00:03:31 +08:00
parent ffeab5e20c
commit 444081846c
3 changed files with 5 additions and 3 deletions

View File

@@ -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)