Skip to content

Commit

Permalink
remove blog teaser for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetpea22 committed Feb 1, 2024
1 parent 33db32e commit 5aa0d89
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
},
env: {
ghostKey: process.env.NEXT_PUBLIC_GHOST_KEY,
ghostUrl: process.env.GHOST_URL,
ghostUrl: process.env.NEXT_PUBLIC_GHOST_URL,
},
reactStrictMode: true,
};
1 change: 0 additions & 1 deletion src/ghost-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ export async function getAllPosts(props?: { limit: number }): Promise<PostsOrPag
include: ["tags", "authors"],
...(props && { ...props }),
})
console.log(posts);
return await posts;
}
5 changes: 1 addition & 4 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ import { getAllPosts } from "@/ghost-client";
// import { use } from 'react';

export default function Home(props: any) {
const posts = getAllPosts();

console.log(posts);


return (
<HubspotProvider>
Expand Down Expand Up @@ -109,7 +107,6 @@ export default function Home(props: any) {
<SocialBanner />
<CTA />
<Footer />
<BlogTeaser posts={posts} />
</>
</HubspotProvider>
);
Expand Down
3 changes: 1 addition & 2 deletions src/sections/BlogTeaser/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import BlogCard from "@/components/BlogCard";
import { getAllPosts } from "@/ghost-client";

export type Post = {
title: string;
Expand Down Expand Up @@ -34,7 +33,7 @@ const BlogTeaser: React.FC<{ posts: any }> = (props) => {
</h2>
</div>
<div className="mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-x-8 gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-3">
{ posts && posts
{posts && posts
.map((post: Post) => (
<BlogCard key={post.id} {...post} showExcerpt={true} />
))
Expand Down

0 comments on commit 5aa0d89

Please sign in to comment.