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>
|
</TagList>
|
||||||
<FontAwesomeIcon icon={faCalendar} /> Published on{" "}
|
<FontAwesomeIcon icon={faCalendar} />{" "}
|
||||||
{this.props.postData?.date || "Unknown date"}
|
{this.props.postData?.date || "Unknown date"}
|
||||||
|
|
||||||
<FontAwesomeIcon icon={faHourglass} />{" "}
|
<FontAwesomeIcon icon={faHourglass} />{" "}
|
||||||
|
|
|
@ -318,13 +318,20 @@ export default class Page extends React.Component<PageProps, PageState> {
|
||||||
{!this.state.isUnsearchable && (
|
{!this.state.isUnsearchable && (
|
||||||
<StyledMetaContainer>
|
<StyledMetaContainer>
|
||||||
<FontAwesomeIcon icon={faCalendar} />{" "}
|
<FontAwesomeIcon icon={faCalendar} />{" "}
|
||||||
Published on {this.state.fetchedPage.date}
|
{this.state.fetchedPage?.date ||
|
||||||
|
"Unknown date"}
|
||||||
|
|
||||||
<FontAwesomeIcon icon={faHourglass} />{" "}
|
<FontAwesomeIcon icon={faHourglass} />{" "}
|
||||||
{this.state.fetchedPage.readTime} read
|
{this.state.fetchedPage?.readTime
|
||||||
|
? this.state.fetchedPage?.readTime +
|
||||||
|
" read"
|
||||||
|
: "unknown length"}
|
||||||
|
|
||||||
<FontAwesomeIcon icon={faBook} />{" "}
|
<FontAwesomeIcon icon={faBook} />{" "}
|
||||||
{this.state.fetchedPage.wordCount} words
|
{this.state.fetchedPage?.wordCount
|
||||||
|
? this.state.fetchedPage.wordCount +
|
||||||
|
" words"
|
||||||
|
: "unknown words"}
|
||||||
</StyledMetaContainer>
|
</StyledMetaContainer>
|
||||||
)}
|
)}
|
||||||
</small>
|
</small>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue