DEV Community

Discussion on: Tailwind Nextjs Starter Blog v0.1.2

Collapse
 
thientran profile image
Thien Tran

hey. i’m trying to use this as a starter blog. when i build. the error says it can’t map through posts because posts isn’t recognized. what am i doing wrong?

Collapse
 
timlrx profile image
Timothy

Hi, I just pulled the latest version and run npm build without problems. Are all your blog posts in the blog folder? Does your frontmatter follow a similar format as the posts I have or did you modify them? Any other modifications made?

You can run node ./scripts/compose.js "My First Post" .md to generate a sample post to test out

Collapse
 
thientran profile image
Thien Tran

ty! i started tinkering with his leerob.io repository and got a site up. i implemented your mobileNav. i’m still a newbie. I prob set the frontMatter date wrong on the blog posts.

I’m trying to customize it more. like add your tag feature. I’m using this as a learning tool also.

Thread Thread
 
timlrx profile image
Timothy

Date needs to be represented as a string with the quotations like 'YYYY-MM-DD'. Have fun playing around and learning!