diff --git a/layout/common/article.jsx b/layout/common/article.jsx index 8cd6a19..066a6df 100644 --- a/layout/common/article.jsx +++ b/layout/common/article.jsx @@ -40,8 +40,14 @@ module.exports = class extends Component {
{page.layout !== 'page' ?
- {/* Date */} - + {/* Creation Date */} + {page.date && ${date(page.date)}`) + }}>} + {/* Last Update Date */} + {page.updated && ${date(page.updated)}`) + }}>} {/* author */} {page.author ? {page.author} : null} {/* Categories */} @@ -62,12 +68,12 @@ module.exports = class extends Component { {(() => { const words = getWordCount(page._content); const time = moment.duration((words / 150.0) * 60, 'seconds'); - return `${time.locale(index ? indexLaunguage : language).humanize()} ${__('article.read')} (${__('article.about')} ${words} ${__('article.words')})`; + return `${_p('article.read_time', time.locale(index ? indexLaunguage : language).humanize())} (${_p('article.word_count', words)})`; })()} : null} {/* Visitor counter */} {!index && plugins && plugins.busuanzi === true ? ' + _p('plugin.visit', '  0') + __html: _p('plugin.visit_count', '0') }}> : null}
: null}