feat(author):add author if exists

This commit is contained in:
zapzqc 2020-05-05 07:46:33 +08:00
parent ea0434b426
commit 6784352301
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ module.exports = class extends Component {
<div class="level-left">
{/* Date */}
<time class="level-item" dateTime={date_xml(page.date)} title={date_xml(page.date)}>{date(page.date)}</time>
{/* author */}
{page.author ? <span class="level-item"> {page.author} </span> : null}
{/* Categories */}
{page.categories && page.categories.length ? <span class="level-item">
{(() => {