removed "Published on"
This commit is contained in:
parent
37fd671eac
commit
a5cad47c78
2 changed files with 11 additions and 4 deletions
|
@ -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"}
|
||||
|
||||
<FontAwesomeIcon icon={faHourglass} />{" "}
|
||||
|
|
|
@ -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"}
|
||||
|
||||
<FontAwesomeIcon icon={faHourglass} />{" "}
|
||||
{this.state.fetchedPage.readTime} read
|
||||
{this.state.fetchedPage?.readTime
|
||||
? this.state.fetchedPage?.readTime +
|
||||
" read"
|
||||
: "unknown length"}
|
||||
|
||||
<FontAwesomeIcon icon={faBook} />{" "}
|
||||
{this.state.fetchedPage.wordCount} words
|
||||
{this.state.fetchedPage?.wordCount
|
||||
? this.state.fetchedPage.wordCount +
|
||||
" words"
|
||||
: "unknown words"}
|
||||
</StyledMetaContainer>
|
||||
)}
|
||||
</small>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue