File tree Expand file tree Collapse file tree 5 files changed +2
-12
lines changed
apps/sim/app/(landing)/blog Expand file tree Collapse file tree 5 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ export async function generateMetadata({
3333 return buildPostMetadata ( post )
3434}
3535
36- export const revalidate = 86400
37-
3836export default async function Page ( { params } : { params : Promise < { slug : string } > } ) {
3937 const { slug } = await params
4038 const post = await getPostBySlug ( slug )
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import { getAllPostMeta } from '@/lib/blog/registry'
55import { PostGrid } from '@/app/(landing)/blog/post-grid'
66import { WithSidebar } from '@/app/(landing)/blog/with-sidebar'
77
8- export const revalidate = 3600
9-
108function findAuthorById ( posts : Awaited < ReturnType < typeof getAllPostMeta > > , id : string ) {
119 for ( const p of posts ) {
1210 if ( p . author . id === id ) return p . author
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import type { NextRequest } from 'next/server'
55import { getPostBySlug } from '@/lib/blog/registry'
66import { getPrimaryCategory } from '@/app/(landing)/studio/tag-colors'
77
8- export const revalidate = 3600
9-
108function getTitleFontSize ( title : string ) : number {
119 if ( title . length > 80 ) return 36
1210 if ( title . length > 60 ) return 40
Original file line number Diff line number Diff line change @@ -218,8 +218,7 @@ export function FeaturedGrid({ posts }: PostGridProps) {
218218 className = 'grid grid-cols-1 gap-6 md:grid-cols-2'
219219 variants = { gridVariants }
220220 initial = { shouldReduceMotion ? 'visible' : 'hidden' }
221- whileInView = 'visible'
222- viewport = { { once : true , margin : '-60px' } }
221+ animate = 'visible'
223222 >
224223 < FeaturedLeadCard post = { lead } />
225224 { rest . map ( ( p ) => (
@@ -237,8 +236,7 @@ export function PostGrid({ posts }: PostGridProps) {
237236 className = 'grid auto-rows-[1fr] grid-cols-1 gap-6 md:grid-cols-2'
238237 variants = { gridVariants }
239238 initial = { shouldReduceMotion ? 'visible' : 'hidden' }
240- whileInView = 'visible'
241- viewport = { { once : true , margin : '-60px' } }
239+ animate = 'visible'
242240 >
243241 { posts . map ( ( p , index ) => (
244242 < PostCard key = { p . slug } post = { p } priority = { index < 4 } />
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ export const metadata: Metadata = {
77 title : 'Tags' ,
88}
99
10- export const revalidate = 3600
11-
1210export default async function TagsIndex ( ) {
1311 const allPosts = await getAllPostMeta ( )
1412
You can’t perform that action at this time.
0 commit comments