diff --git a/src/containers/PostListing.tsx b/src/containers/PostListing.tsx index f03aee2..8514341 100644 --- a/src/containers/PostListing.tsx +++ b/src/containers/PostListing.tsx @@ -14,7 +14,7 @@ const PostListing = ({ posts, title, showAllButton }) => { return ( <>
-

+

{title}

diff --git a/src/pages/about.tsx b/src/pages/about.tsx index f365266..a2c5ca9 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -5,7 +5,7 @@ const AboutPage = () => { return (
-

+

About

diff --git a/src/pages/home.tsx b/src/pages/home.tsx index 459a320..a2996a1 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -6,36 +6,36 @@ import { Button } from "@/components/ui/button" import { Link } from "react-router" const HomePage = () => { - const { posts } = usePosts() - return ( - - - -

- Another software engineer with a blog -

-
- -

- I'm a self-taught software engineer currently working at ITV, - previously at the BBC. This blog is a technical scrapbook and - digital garden. -

-
- - - -
+ const { posts } = usePosts() + return ( + + + +

+ Another software engineer with a blog +

+
+ +

+ I'm a self-taught software engineer currently working at ITV, + previously at the BBC. This blog is a technical scrapbook and + digital garden. +

+
+ + + +
- -
- ) + +
+ ) } export { HomePage } diff --git a/src/pages/posts.tsx b/src/pages/posts.tsx index a10d980..11efc5b 100644 --- a/src/pages/posts.tsx +++ b/src/pages/posts.tsx @@ -61,7 +61,7 @@ const PostsPage = () => { return (
-

+

All posts

diff --git a/src/templates/BlogTemplate.tsx b/src/templates/BlogTemplate.tsx index 00397ab..8c002b4 100644 --- a/src/templates/BlogTemplate.tsx +++ b/src/templates/BlogTemplate.tsx @@ -6,37 +6,37 @@ import { convertDate } from "@/utils/convertDate" import { usePosts } from "@/hooks/usePosts" const BlogTemplate = () => { - const { slug } = useParams() - const { posts } = usePosts() - const post = posts?.find((x) => x.slug === slug) + const { slug } = useParams() + const { posts } = usePosts() + const post = posts?.find((x) => x.slug === slug) - return ( - - {!post ? ( -
Loading...
- ) : ( - <> -
-

- {post?.title} -

-
-
- - {convertDate(post?.date)} - -
- {post?.tags?.map((tag, i) => ( - - - {tag} - - - ))} -
-
-
+

+ {post?.title} +

+
+
+ + {convertDate(post?.date)} + +
+ {post?.tags?.map((tag, i) => ( + + + {tag} + + + ))} +
+
+
- - )} - - ) + dangerouslySetInnerHTML={{ __html: post?.html }} + /> + + )} + + ) } export default BlogTemplate