timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
7.43k stars 1.87k forks source link

Tags not updated #892

Closed zhengbi-yong closed 3 months ago

zhengbi-yong commented 3 months ago

Describe the bug I wrote a blog with some new tags in it , but the tags page doesn't show the newly added tags.

Did I do something wrong? Or do I need to add the tags somewhere?

timlrx commented 3 months ago

Try exiting and restarting the dev server again. Contentlayer should write the tags to a tag-data.json file and it should be picked up by next.js to correctly populate the pages.

zhengbi-yong commented 3 months ago

It seems to be the problem of Windows' file path naming rule. I changed my project on wsl2:ubuntu, and the problem solved.