If you make two slices, One for the Richtext and one or the image, there would have to be a ton of variations for the images right?
Just an image
heading + image
heading + image + paragraph
image + figcaption
The prismic blog is a good example. This post - Build a Next.js Blog: A Step-by-Step Guide - has a bunch of images, but it looks like they aren't using slices because there's no slice-variation attribute on any of the blog content.
I came across this thread, but the 'answer' was vague.
There isn’t a single “best way” to structure your blog slices. It really depends on your specific needs, layout, and how much flexibility and reusability you want for your blog content.
That said, for a blog with mixed content like headings, paragraphs, images, and captions, we recommend creating reusable slices* to keep things modular and manageable. Based on the example you shared, you could use:
A Rich Text Slice for headings and paragraphs
An Image Slice with optional fields for captions or alignment
A Combination Slice for frequent layouts such as "Heading with Image" or "Image with Caption"
This approach lets you mix and match slices as needed, making it easy to create dynamic layouts while still allowing some variations.
I also have question about "Best Practice about slice" (more like grouping or having as many slice)
for example in a post, it can have a image, video, heading, paragraph
Maybe i should have a 'asset' slice that has different variations withImage, withImageAndCaption, withVideo? and a Text slice that default to pargraph and a heading
I'm not sure if this is better than creating like 5 slice, I'm not sure if i'm over-complicated this.
Currently: Image slice (single image, image with caption), Video Slice (ombed, youtube, vimeo, variations), Text (paragraph and heading).
Your setup looks solid. There is no "perfect" way but always keep in mind that keeping slices focused on a single content type makes them easier to manage and reuse.
If you often use the same combinations like Image with Caption or Video with Description, adding a few variations within your slices can help. Just avoid too many variations, as they can make maintenance harder.
You are on the right track. Keep it simple and let us know if you need any more guidance.