From 04950b84bb2d2fe73f32ab600620841b52de71a1 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Tue, 25 Nov 2025 18:43:08 +0000 Subject: [PATCH] style: improve titles --- src/components/EolasListing.jsx | 90 ++++++++++++------------ src/containers/CodeStats.jsx | 2 +- src/containers/PostListing.jsx | 4 +- src/pages/home.jsx | 120 ++++++++++++++++---------------- src/pages/posts.jsx | 2 +- src/templates/BlogTemplate.jsx | 2 +- 6 files changed, 110 insertions(+), 110 deletions(-) diff --git a/src/components/EolasListing.jsx b/src/components/EolasListing.jsx index 3da6573..d3fa4b4 100644 --- a/src/components/EolasListing.jsx +++ b/src/components/EolasListing.jsx @@ -3,57 +3,57 @@ import eolasApi from "@/api/eolas-api" import { convertDate } from "@/utils/convertDate" const EolasEntries = ({ entries }) => { - return ( - entries && - entries.map((entry, i) => ( - - )) - ) + return ( + entries && + entries.map((entry, i) => ( + + )) + ) } const EolasListing = () => { - const { data, isLoading, error } = useQuery({ - queryKey: [`eolas_listing`], - queryFn: () => - eolasApi.get(`entries?limit=5&sort=date`).then((res) => res.data), - }) + const { data, isLoading, error } = useQuery({ + queryKey: [`eolas_listing`], + queryFn: () => + eolasApi.get(`entries?limit=5&sort=date`).then((res) => res.data), + }) - return ( -
-
-
-

- recent notes (external) -

+ return ( +
+
+
+

+ {`> recent learning (external)`} +

- {isLoading &&
Loading...
} + {isLoading &&
Loading...
} - {error ? ( -
- Error fetching recent learning -
- ) : ( - - )} -
-
-
- ) + {error ? ( +
+ Error fetching recent learning +
+ ) : ( + + )} +
+
+
+ ) } export default EolasListing diff --git a/src/containers/CodeStats.jsx b/src/containers/CodeStats.jsx index 7e1707f..3c9b523 100644 --- a/src/containers/CodeStats.jsx +++ b/src/containers/CodeStats.jsx @@ -66,7 +66,7 @@ const CodeStats = () => {

- code stats + {`> code stats`}

{convertDateFriendly(data?.from)} -{" "} diff --git a/src/containers/PostListing.jsx b/src/containers/PostListing.jsx index 4696df8..f5a2eaf 100644 --- a/src/containers/PostListing.jsx +++ b/src/containers/PostListing.jsx @@ -8,8 +8,8 @@ const PostListing = ({ posts, title, showAllButton }) => {
-

- {title} +

+ {`> ${title}`}

{posts.map((post) => (
    diff --git a/src/pages/home.jsx b/src/pages/home.jsx index b97e617..f124485 100644 --- a/src/pages/home.jsx +++ b/src/pages/home.jsx @@ -7,69 +7,69 @@ import CodeStats from "../containers/CodeStats" // import TodayILearned from "@/containers/TodayILearned" const HomePage = () => { - const { posts } = usePosts() - return ( - -
    -
    -
    -
    -
    - -
    -
    -

    -
    - systems obscure -
    -

    -

    - Software engineer at ITV, formerly BBC. This is my technical - scrapbook and digital garden. -

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

    +
    + systems obscure +
    +

    +

    + Software engineer at ITV, formerly BBC. This is my technical + scrapbook and digital garden. +

    +
    +
    +
    +
    +
    - + - post.tags.includes("highlight"))} - /> + post.tags.includes("highlight"))} + /> -
    -
    -
    -

    - projects -

    -
      -
    • - - eolas - -
    • -
    • -

      - A public frontend for my local Zettelkasten created with - NodeJS, Python and React. -

      -
    • -
    -
    -
    -
    - - -
    - ) +
    +
    +
    +

    + {`> projects`} +

    +
      +
    • + + eolas + +
    • +
    • +

      + A public frontend for my local Zettelkasten created with + NodeJS, Python and React. +

      +
    • +
    +
    +
    +
    + + +
    + ) } export { HomePage } diff --git a/src/pages/posts.jsx b/src/pages/posts.jsx index a3a73b2..eb0cb07 100644 --- a/src/pages/posts.jsx +++ b/src/pages/posts.jsx @@ -9,7 +9,7 @@ const PostsPage = () => { return ( - + ) } diff --git a/src/templates/BlogTemplate.jsx b/src/templates/BlogTemplate.jsx index 4f2afb5..13b4b69 100644 --- a/src/templates/BlogTemplate.jsx +++ b/src/templates/BlogTemplate.jsx @@ -17,7 +17,7 @@ const BlogTemplate = () => { ) : (
    -

    +

    {post?.title}