vercel / nextjs-portfolio-starter

Easily create a portfolio with Next.js and Markdown.
https://demo.vercel.blog
664 stars 263 forks source link

Be able to hide (or delete) "posts" link in navigation #24

Open amedott opened 1 year ago

amedott commented 1 year ago

I hope this isn't too unreasonable of a request.

I am currently using this template, but I don't intend to write posts on my site. However, any attempt to hide the link (by putting an underscore before index.md in /pages/posts/ directory) or straight up deleting the posts folder entirely would throw an error at me. The documentation for the blog theme seems very underdeveloped as well so I'm not sure if hiding the Posts link is something that can be worked on from the user side.

Thanks.

inb4 "You're using a blog theme for your site, therefore you should use it as a blog"

brodyu commented 1 year ago

You can uncomment the type: posts in /pages/posts/index.md. The same can be done in the photos.mdx page to remove the photos link.

bogdanrakocevic commented 10 months ago

You can uncomment the type: posts in /pages/posts/index.md. The same can be done in the photos.mdx page to remove the photos link.

What did you mean by "uncomment"? It's already uncommented. Btw, I lost hours today with this exact issue, and still haven't figured it out.

JoshElgar commented 10 months ago

Delete that line @bogdanrakocevic.