diff --git a/src/app/(app)/layout.tsx b/src/app/(app)/layout.tsx
index b936db4..d0d3a9c 100644
--- a/src/app/(app)/layout.tsx
+++ b/src/app/(app)/layout.tsx
@@ -1,25 +1,16 @@
import React from 'react'
import './global.css'
-/* import { Inter } from 'next/font/google'
-const inter = Inter({
- subsets: ['latin'],
- display: 'swap',
-})
- */
-/* Our app sits here to not cause any conflicts with payload's root layout */
+import Header from '@/components/Header'
+import Footer from '@/components/Footer'
+
const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
- {
- /*
-
{children}
-
- */
- }
-
return (
- {children}
+
+ {children}
+
)
diff --git a/src/app/(app)/page.tsx b/src/app/(app)/page.tsx
index 59e524e..f7c9c00 100644
--- a/src/app/(app)/page.tsx
+++ b/src/app/(app)/page.tsx
@@ -12,19 +12,15 @@ interface Props {}
const Page = (props: Props) => {
return (
<>
-
-
- Nextload
-
- {`Nextload is a pre-configured setup for Nextjs and PayloadCMS that makes it easy to get started with building your website. With Nextload, you'll have a complete development environment that you can run locally using Docker. This makes it easy to test and develop your website before deploying it to a production environment.`}
-
- {`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.`}
-
-
-
-
+ Nextload
+
+ {`Nextload is a pre-configured setup for Nextjs and PayloadCMS that makes it easy to get started with building your website. With Nextload, you'll have a complete development environment that you can run locally using Docker. This makes it easy to test and develop your website before deploying it to a production environment.`}
+
+ {`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.`}
+
+
>
)
}
diff --git a/src/app/(app)/posts/[[...path]]/page.tsx b/src/app/(app)/posts/[[...path]]/page.tsx
index b696143..d8a4cf3 100644
--- a/src/app/(app)/posts/[[...path]]/page.tsx
+++ b/src/app/(app)/posts/[[...path]]/page.tsx
@@ -30,7 +30,7 @@ const Page = async ({ params }: PageArgs) => {
depth: 3,
})
if (!post) notFound()
- return
+ return
}
export default Page
diff --git a/src/components/Blocks/Author.tsx b/src/components/Blocks/Author.tsx
index f575ea9..d0c3031 100644
--- a/src/components/Blocks/Author.tsx
+++ b/src/components/Blocks/Author.tsx
@@ -14,14 +14,14 @@ const AuthorComponent: React.FC = ({ author }) => {
{typeof author.avatar === 'object' && (
)}
-
{author.name}
+
{author.name}
{author.bio}
diff --git a/src/components/PostPage.tsx b/src/components/PostPage.tsx
index 1c7d0f2..d9f16da 100644
--- a/src/components/PostPage.tsx
+++ b/src/components/PostPage.tsx
@@ -1,6 +1,7 @@
import React from 'react'
import { Post } from 'types/payload-types'
import Blocks from './Blocks'
+import Author from './Blocks/Author'
interface Props {
post: Post
@@ -11,6 +12,9 @@ export default function PostPage(props: Props) {
return (
+ {props?.post.author && typeof props?.post.author !== 'string' && (
+
+ )}
)
}
diff --git a/src/utils/generateMeta.ts b/src/utils/generateMeta.ts
index 91f2644..c7b4225 100644
--- a/src/utils/generateMeta.ts
+++ b/src/utils/generateMeta.ts
@@ -4,9 +4,9 @@ import deepmerge from 'deepmerge'
import { getDocument } from '@/utils/getDocument'
import normalizePath from './normalizePath'
-const defaultTitle = 'Payload SaaS Starter'
+const defaultTitle = 'Nextload'
const defaultDescription = 'An open-source website built with Payload and Next.js.'
-const siteName = 'Payload SaaS Starter'
+const siteName = 'Nextload'
const defaultOpenGraph: Metadata['openGraph'] = {
type: 'website',