{t(`${type}NewInfo`)}
{type === 'showcase' && (
{designs.length > 0 ? (
) : (
)}
Design:
{designs.length > 0 ? (
{designs.map((d) => capitalize(d)).join(', ')}
) : (
Please select at least 1 design
)}
}
>
Pick one or more designs that are featured in this post.
)}
{title.length > 10 ? (
) : (
)}
Title:
{title.length > 10 ? (
{title}
) : (
Please enter a post title
)}
}
>
Give your post a title. A good title is more than just a few words.
{slugAvailable && slug.length > 3 ? (
) : (
)}
Slug:
{slug.length > 3 ? (
{slug}
) : (
Please enter a slug (or post title)
)}
}
>
The slug is the part of the URL that uniquely identifies the post. We can generate one based
on the title, but you can also customize it.
{img.length > 3 ? (
) : (
)}
Main Image:
{img.length > 3 ? (
{img}
) : (
Please provide a main image for the post
)}
}
>
The main image will be shown at the top of the post, and as the only image on the {type}
index page.
{caption.length > 3 ? (
) : (
)}
Main Image Caption:
{caption.length > 3 ? (
{caption}
) : (
Please provide a caption for the main image
)}
}
>
The caption is the text that goes under the main image. Can include copyrights/credits.
Markdown is allowed.
{intro.length > 3 ? (
) : (
)}
Intro:
{intro.length > 3 ? (
{intro}
) : (
Please provide an intro for link proviews
)}
}
>
A brief paragraph that will be shown on post previews on social media and so on.Additional Images: {Object.keys(extraImages).length}
}
>
{img ? (
<>
Here you can add any images you want to include in the post body.
{Object.keys(extraImages).map((key) => {
const markup =
' +
' "The image caption/title goes here")'
return (
setExtraImg(key, img)}
type={type}
subId={key}
img={extraImages[key]}
slug={slug}
/>
{extraImages[key] && (
<>
To include this image in your post, use this markdown snippet:
>
)}
)
})}
>
) : (
Please add a main image first
)}
{body.length > 3 ? (
) : (
)}
Post body:
{body.length > 3 ? (
{body.slice(0, 30) + '...'}
) : (
Please provide a post body
)}
}
>
The actual post body. Supports Markdown.
>
)