diff --git a/README.md b/README.md index f74598a..2c22cc4 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,17 @@ Repository for my (developomp's) + theming.theme(props.theme.currentTheme, { + light: "#555", + dark: "lightgrey", + })}; +` + const StyledLink = styled(Link)` text-decoration: none; color: ${(props) => theming.theme(props.theme.currentTheme, { - light: "black", - dark: "white", + light: theming.light.color1, + dark: theming.dark.color1, })}; &:hover { @@ -48,6 +62,8 @@ interface PostCardProps { url: string title: string | undefined preview: string + readTime: string + wordCount: number tags: string[] date: string | undefined } @@ -69,7 +85,7 @@ export default class PostCard extends React.Component { : "No title"} - + {this.props.postData.tags ? ( this.props.postData.tags.map((tag) => { @@ -84,11 +100,21 @@ export default class PostCard extends React.Component { <> )} - Published on{" "} + Published on{" "} {this.props.postData?.date ? this.props.postData.date : "Unknown date"} - +      + {" "} + {this.props.postData?.readTime + ? this.props.postData.readTime + " read" + : "unknown length"} +      + {" "} + {this.props.postData?.wordCount + ? this.props.postData.wordCount + " words" + : "unknown words"} +
{ {this.state.isUnsearchable ? ( <> ) : ( - <>Published on {this.state.fetchedPage.date} + <> + {" "} + Published on {this.state.fetchedPage.date} +      + {" "} + {this.state.fetchedPage.readTime} read +      + {" "} + {this.state.fetchedPage.wordCount} words + )} {/* Horizontal Separator */} diff --git a/source/yarn.lock b/source/yarn.lock index 4a9972a..ec431a0 100644 --- a/source/yarn.lock +++ b/source/yarn.lock @@ -9923,6 +9923,11 @@ read-pkg@^5.2.0: parse-json "^5.0.0" type-fest "^0.6.0" +read-time-estimate@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/read-time-estimate/-/read-time-estimate-0.0.3.tgz#3791c6715b0625252f491f74851a12a8dfc2055a" + integrity sha512-TF87eHTuEyRtu/mwnQE8FoZYHpsN1Oj+U/oROL5nrsoEWsh/iGhBzkV50N6DdPEqZ9Jh2PSZk1ZA7KMucgb+ng== + "readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@~2.3.6: version "2.3.7" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"