--- // Import section components import MainLayout from "../../layouts/MainLayout.astro"; import CardBlog from "../../components/ui/cards/CardBlog.astro"; import CardBlogRecent from "../../components/ui/cards/CardBlogRecent.astro"; import { getCollection } from "astro:content"; import type { CollectionEntry } from "astro:content"; const blogPosts: CollectionEntry<"blog">[] = ( await getCollection("blog") ).sort((a: CollectionEntry<"blog">, b: CollectionEntry<"blog">) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); const mostRecentPost: CollectionEntry<"blog"> = blogPosts[0]; const otherPosts: CollectionEntry<"blog">[] = blogPosts.slice(1); const title: string = "Your Gateway to Construction Excellence"; const subTitle: string = "Explore the latest news, tips, and insights from ScrewFast to enhance your construction projects. From product spotlights to project management strategies, our blog is your go-to resource for all things hardware and construction."; const secondTitle: string = "Insights"; const secondSubTitle: string = "Stay up-to-date with the latest trends and developments in the construction industry with insights from ScrewFast's team of industry experts. "; ---

{title}

{subTitle}

{otherPosts.map(blogEntry => ( ))}

{secondTitle}

{secondSubTitle}