Add posts
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias
2024-06-24 01:22:01 +02:00
parent 5eb7b7037b
commit d6fe6446a5
10 changed files with 234 additions and 112 deletions

View File

@ -1,8 +1,11 @@
import ThemeSwitcher from '@/components/ThemeSwitcher'
import { getCurrentYear } from '@/utils/date'
import Link from 'next/link'
import React from 'react'
import Header from '@/components/Header'
import Footer from '@/components/Footer'
import { getPayloadHMR } from '@payloadcms/next/utilities'
import configPromise from '@payload-config'
import Posts from '@/components/Blocks/Posts'
interface Props {}
@ -17,16 +20,11 @@ const Page = (props: Props) => {
<br />
{`When you're ready to deploy the website on your own server, Nextload comes with a production environment that requires the use of Traefik as a reverse proxy. This setup provides a secure and scalable production environment for your website.`}
</p>
{/* <section className="mt-4">
<Posts posts={posts} />
</section> */}
<section className="mt-4">
<Posts />
</section>
</main>
<footer className="flex justify-between items-center py-4">
<p className="text-lg font-semibold">
&copy; {getCurrentYear()} Autonomic. Template distributed under AGPL 3.0.
</p>
<ThemeSwitcher />
</footer>
<Footer />
</>
)
}