#Payload 3.0 to power isolated blog

2 messages · Page 1 of 1 (latest)

river pike
#

Howdy, this might be a stupid or basic question.

I already have a simple Next.js website. I want to use Payload to power the blog section at /blog only (for now). I set up a barebones example based on 'payload-3.0-demo' with an admin panel with just users & media.

So what I need next is a post collection. I initially tried to port over everything from the 'website' template but it seems like a lot of extra stuff I don't need, and its using tailwind which I don't use so I'd have to rewrite a lot of it?

I want my server component to just fetch what it needs (title, created_date, content, SEO plugin).

For the title and date that is simple enough but how exactly would 'content' work in my case. My content has regular elements (like headings, paragraphs, images, video, tables) as well as code blocks (ideally highlight.js).

I'd want to use the rich editor in the admin panel to create but what exactly would my server component receive? HTML? Would the HTML have styles attached or be barebones?

toxic breachBOT