2025-07-07 17:08:27 +01:00
|
|
|
import MainTemplate from "@/templates/MainTemplate"
|
|
|
|
|
import PostListing from "@/containers/PostListing"
|
|
|
|
|
import { usePosts } from "@/hooks/usePosts"
|
2025-11-04 19:06:51 +00:00
|
|
|
import gruvboxComputer from "../images/gruvbox-computer.svg"
|
2025-11-10 18:57:49 +00:00
|
|
|
import EolasListing from "@/components/EolasListing"
|
2025-11-25 17:11:28 +00:00
|
|
|
import CodeStats from "../containers/CodeStats"
|
2025-11-04 19:58:23 +00:00
|
|
|
// import TodayILearned from "@/containers/TodayILearned"
|
2025-07-07 17:08:27 +01:00
|
|
|
|
|
|
|
|
const HomePage = () => {
|
2026-01-20 17:12:37 +00:00
|
|
|
const { posts } = usePosts()
|
|
|
|
|
return (
|
|
|
|
|
<MainTemplate>
|
2026-03-08 19:08:26 +00:00
|
|
|
<p>A wizard who goes to bed early. This is my technical scrapbook
|
|
|
|
|
and digital garden.
|
|
|
|
|
</p>
|
2025-07-31 16:44:15 +01:00
|
|
|
|
2026-03-08 19:08:26 +00:00
|
|
|
|
|
|
|
|
<PostListing title="Recent posts" posts={posts.slice(0, 5)} />
|
2025-11-16 18:19:09 +00:00
|
|
|
|
2026-01-20 17:12:37 +00:00
|
|
|
<PostListing
|
2026-03-08 19:08:26 +00:00
|
|
|
title="Highlights"
|
2026-01-20 17:12:37 +00:00
|
|
|
posts={posts.filter((post) => post.tags.includes("highlight"))}
|
|
|
|
|
/>
|
2025-11-16 18:19:09 +00:00
|
|
|
|
2026-03-08 19:08:26 +00:00
|
|
|
|
|
|
|
|
{/* <CodeStats />
|
|
|
|
|
<EolasListing /> */}
|
2026-01-20 17:12:37 +00:00
|
|
|
</MainTemplate>
|
|
|
|
|
)
|
2025-07-07 17:08:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { HomePage }
|