Update blog images, remove deleted posts, and configure rotating featured post

This commit is contained in:
MichalC
2026-07-19 19:40:14 +02:00
parent d545e7fdcc
commit 5c56c6b05a
78 changed files with 238 additions and 177 deletions
+3 -7
View File
@@ -1,6 +1,5 @@
import { Metadata } from 'next';
import { HeroSection } from '@/components/sections/HeroSection';
import { FeaturedPost } from '@/components/sections/FeaturedPost';
import { PostsGrid } from '@/components/sections/PostsGrid';
import { CtaBanner } from '@/components/sections/CtaBanner';
import { getPosts, getFeaturedPost } from '@/content/posts';
@@ -13,6 +12,8 @@ export const metadata: Metadata = {
}
};
export const revalidate = 86400; // Regenerate every 24 hours
export default function BlogPage() {
const allPosts = getPosts();
const featuredPost = getFeaturedPost();
@@ -34,12 +35,7 @@ export default function BlogPage() {
/>
<section className="py-16 md:py-24 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="mb-16">
<h2 className="text-2xl font-bold text-primary font-heading mb-8">Artykuł wyróżniony</h2>
<FeaturedPost post={featuredPost} />
</div>
<PostsGrid posts={remainingPosts} />
<PostsGrid posts={remainingPosts} featuredPost={featuredPost} />
</section>
<CtaBanner