From f1d1ae663956278532ee6da97140d1228c249f3a Mon Sep 17 00:00:00 2001 From: Eurkon <53698089+Eurkon@users.noreply.github.com> Date: Thu, 12 Aug 2021 14:13:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E7=AB=A0=20post-info=20?= =?UTF-8?q?=E4=B8=AD=E5=8F=91=E8=A1=A8=E6=97=B6=E9=97=B4=20title=20?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=20undefined=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/header/post-info.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/includes/header/post-info.pug b/layout/includes/header/post-info.pug index 1edae72..45c430a 100644 --- a/layout/includes/header/post-info.pug +++ b/layout/includes/header/post-info.pug @@ -21,9 +21,9 @@ - let data_type_update = theme.post_meta.post.date_type === 'updated' - let date_type = data_type_update ? 'updated' : 'date' - let date_icon = data_type_update ? 'fas fa-history' :'far fa-calendar-alt' - - let data_info = data_type_update ? _p('post.updated') : _p('post.created') + - let date_title = data_type_update ? _p('post.updated') : _p('post.created') i.fa-fw.post-meta-icon(class=date_icon) - span.post-meta-label= data_info + span.post-meta-label= date_title time(datetime=date_xml(page[date_type]) title=date_title + ' ' + full_date(page[date_type]))=date(page[date_type], config.date_format) if (theme.post_meta.post.categories && page.categories.data.length > 0) span.post-meta-categories @@ -108,4 +108,4 @@ when 'Facebook Comments' +countBlock a(href=url_for(page.path) + '#post-comment') - span.fb-comments-count(data-href=urlNoIndex()) \ No newline at end of file + span.fb-comments-count(data-href=urlNoIndex())