atinux / content-wind

A lightweight Nuxt theme to build a Markdown driven website. Powered by Nuxt Content, TailwindCSS and Iconify.
https://content-wind.nuxt.space
MIT License
791 stars 55 forks source link

How to display Blog Content? #7

Closed jjaimealeman closed 2 years ago

jjaimealeman commented 2 years ago

Thank you for putting this together! My understanding of Nuxt is not great but growing as I tinker with it.

  1. How would I display individual blog posts located at content/blog/post-1.md?
  2. A question about image paths. This works in development ![vectorme](../public/assets/images/vectorme.png) but is broken when uploaded to Netlify.

Please forgive my newb questions.

aynh commented 2 years ago
  1. That would be mapped to /blog/post-1, you can read more here.
  2. In Nuxt, public directory is mapped to /, so you need to change ![vectorme](../public/assets/images/vectorme.png) into ![vectorme](/assets/images/vectorme.png).