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
8.56k stars 1.99k forks source link

Is there any way to automatically count the number of posts through tags? #719

Closed tqt97 closed 11 months ago

tqt97 commented 11 months ago

The number change when we edit in app/tag-data.json

timlrx commented 11 months ago

Sorry if it was not clear but app/tag-data.json is automatically generated via contentlayer, so you should not be editing that manually.

tqt97 commented 11 months ago

i see. i use Window so Contentlayer might not work as expected. Thanks sir to reply.

timlrx commented 11 months ago

I think you will get this issue: https://github.com/timlrx/tailwind-nextjs-starter-blog/issues/704. There's a workaround there but it's easier to use WSL.

tqt97 commented 11 months ago

Thanks so much, sir