refactor(starter): upgrade and move to typescript

This commit is contained in:
Alexander Shelepenok
2022-04-16 14:25:55 +00:00
parent 67ebabbaac
commit 50a99f57f7
156 changed files with 5350 additions and 7173 deletions

View File

@@ -10,7 +10,7 @@ import { Content } from "./Content";
import { Meta } from "./Meta";
import { Tags } from "./Tags";
import styles from "./Post.module.scss";
import * as styles from "./Post.module.scss";
interface Props {
post: Node;
@@ -23,21 +23,21 @@ const Post: React.FC<Props> = ({ post }: Props) => {
return (
<div className={styles.post}>
<Link className={styles["post__home-button"]} to="/">
<Link className={styles.button} to="/">
All Articles
</Link>
<div className={styles.post__content}>
<div className={styles.content}>
<Content body={html} title={title} />
</div>
<div className={styles.post__footer}>
<div className={styles.footer}>
<Meta date={date} />
{tags && tagSlugs && <Tags tags={tags} tagSlugs={tagSlugs} />}
<Author />
</div>
<div className={styles.post__comments}>
<div className={styles.comments}>
<Comments postSlug={slug} postTitle={post.frontmatter.title} />
</div>
</div>