From ddbdab3f26234a1f8fe670cc32ceef11ab030dbe Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Sun, 29 Aug 2021 21:38:16 +0200 Subject: [PATCH] feat: add small about paragraph --- components/BlogList.js | 12 +++++++----- components/Layout.js | 16 ---------------- components/Page.js | 1 - content/index.md | 9 +++++++++ 4 files changed, 16 insertions(+), 22 deletions(-) diff --git a/components/BlogList.js b/components/BlogList.js index 7f690ed8c..d645436ed 100644 --- a/components/BlogList.js +++ b/components/BlogList.js @@ -22,10 +22,12 @@ const BlogList = ({ posts }) => { a.frontmatter.date < b.frontmatter.date ? 1 : -1 ) .map((post) => ( - -
+
+

{post.frontmatter.title}

-

{reformatDate(post.frontmatter.date)}

+

+ {reformatDate(post.frontmatter.date)} +

{ )} />

-
- + +
))} ); diff --git a/components/Layout.js b/components/Layout.js index 2ff7c9709..f771d6443 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -3,27 +3,11 @@ import Header from "./Header"; import Footer from "./Footer"; import Meta from "./Meta"; -function useWindowSize() { - const [size, setSize] = useState([0, 0]); - useLayoutEffect(() => { - function updateSize() { - setSize([window.innerWidth, window.innerHeight]); - } - window.addEventListener("resize", updateSize); - updateSize(); - return () => window.removeEventListener("resize", updateSize); - }, []); - return size; -} - export default function Layout({ siteTitle, siteDescription, children, - pathname, }) { - const [windowWidth, windowHeight] = useWindowSize(); - return (
diff --git a/components/Page.js b/components/Page.js index 0f1a154fe..c5c25628b 100644 --- a/components/Page.js +++ b/components/Page.js @@ -2,7 +2,6 @@ import Layout from "./Layout"; export default function Page(props) { const { title, date, siteTitle } = props; - console.log(props); return (
diff --git a/content/index.md b/content/index.md index 86410ee5a..d65428ae8 100644 --- a/content/index.md +++ b/content/index.md @@ -7,3 +7,12 @@ My interests include... * Programming Language Design * Minimalist Software * Free Software + +  + +On my [blog](/posts), I ramble about software and tech-related topics. Check +out my [todos](/todo) if you need inspiration for your next project. + +I'm always up for a chat. Feel free to reach out via +[Email](mailto:garrit@slashdev.space) or +[Matrix](https://matrix.to/#/@garrit:matrix.slashdev.space).