make async
This commit is contained in:
parent
a096a5ff5b
commit
869809f11a
4 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {getCategorizedArticles} from "@/lib/articles";
|
||||
import ArticleItemList from "@/components/ArticleListItem";
|
||||
|
||||
export default function BlogPage() {
|
||||
export default async function BlogPage() {
|
||||
const articles = getCategorizedArticles()
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export default function Contact() {
|
||||
export default async function Contact() {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center min-h-screen py-2">
|
||||
<h1 className="text-4xl font-bold">Contact page, wip.</h1>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export const metadata: Metadata = {
|
|||
description: "Come and see what I'm all about.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from "react";
|
||||
|
||||
export default function Home() {
|
||||
export default async function Home() {
|
||||
return (
|
||||
<main className="mx-auto mb-20 mt-20 flex w-11/12 max-w-4xl flex-col gap-12 md:w-2/3">
|
||||
<section className="flex flex-col items-center gap-8 text-center font-cormorantGaramond">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue