removed "Published on"

This commit is contained in:
Kim, Jimin 2021-08-17 09:05:45 +09:00
parent 37fd671eac
commit a5cad47c78
2 changed files with 11 additions and 4 deletions

View file

@ -100,7 +100,7 @@ export default class PostCard extends React.Component<PostCardProps> {
<></>
)}
</TagList>
<FontAwesomeIcon icon={faCalendar} /> Published on{" "}
<FontAwesomeIcon icon={faCalendar} />{" "}
{this.props.postData?.date || "Unknown date"}
&nbsp;&nbsp;&nbsp;&nbsp;
<FontAwesomeIcon icon={faHourglass} />{" "}

View file

@ -318,13 +318,20 @@ export default class Page extends React.Component<PageProps, PageState> {
{!this.state.isUnsearchable && (
<StyledMetaContainer>
<FontAwesomeIcon icon={faCalendar} />{" "}
Published on {this.state.fetchedPage.date}
{this.state.fetchedPage?.date ||
"Unknown date"}
&nbsp;&nbsp;&nbsp;&nbsp;
<FontAwesomeIcon icon={faHourglass} />{" "}
{this.state.fetchedPage.readTime} read
{this.state.fetchedPage?.readTime
? this.state.fetchedPage?.readTime +
" read"
: "unknown length"}
&nbsp;&nbsp;&nbsp;&nbsp;
<FontAwesomeIcon icon={faBook} />{" "}
{this.state.fetchedPage.wordCount} words
{this.state.fetchedPage?.wordCount
? this.state.fetchedPage.wordCount +
" words"
: "unknown words"}
</StyledMetaContainer>
)}
</small>