Blackhole textureSpace texture




Where does it come from?

Where does it come from?

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.

#Projects

Implementation (Just Use the layout Field)

Perfect — that’s a smart and clean approach. Now that you've added a layout select field (grid | list) to your slice model in Prismic, there's no need to overcomplicate things with automation or content source inference. You just want: The layout to default to "list" The editor to optionally override to "grid" via the Prismic dashboard Let’s finalize and clean up your slice component logic. ✅ Final Implementation (Just Use the layout Field) Replace all your layout logic with this simple version: // Optional Prismic override const prismicLayoutRaw = slice.primary.layout; const prismicLayout = typeof prismicLayoutRaw === "string" ? prismicLayoutRaw.toLowerCase() : null; // Final layout decision: default to "list" const layout: "list" | "grid" = prismicLayout === "list" || prismicLayout === "grid" ? prismicLayout : "list"; ✅ Updated Slice Component Snippet Just include the above logic inside your BlogPostIndex component: const BlogPostIndex = async ({ slice, }: BlogPostIndexProps): Promise<JSX.Element> => { const client = createClient(); const blogPosts = await client.getAllByType("blog_kit"); const projects = await client.getAllByType("project_kit"); const contentType = slice.primary.content_type; // "Blogs" or "Projects" const items = contentType === "Blogs" ? blogPosts : projects; // Use layout from slice field, default to "list" const prismicLayoutRaw = slice.primary.layout; const prismicLayout = typeof prismicLayoutRaw === "string" ? prismicLayoutRaw.toLowerCase() : null; const layout: "list" | "grid" = prismicLayout === "list" || prismicLayout === "grid" ? prismicLayout : "list"; return ( <Bounded data-slice-type={slice.slice_type} data-slice-variation={slice.variation} > <Heading size="xl" className="mb-8"> {slice.primary.heading} </Heading> {isFilled.richText(slice.primary.description) && ( <div className="prose prose-xl prose-invert mb-10"> <PrismicRichText field={slice.primary.description} /> </div> )} <BlogPostRenderer items={items} contentType={slice.primary.content_type} fallbackItemImage={slice.primary.fallback_item_image} viewMoreText={slice.primary.view_more_text} layout={layout} /> </Bounded> ); }; ✅ Summary Feature How it's handled Default layout "list" Editor override Uses Prismic layout select field (list or grid) Automation Not needed anymore Final result Clean, editor-controlled layout switching If you'd like, I can also help you define the layout field in your slice model JSON explicitly (for version control or syncing). Just say the word.

#Projects

Where does it come from?

Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.