davestewart / nuxt-content-assets

Enable locally-located assets in Nuxt Content
https://npmjs.com/package/nuxt-content-assets
108 stars 7 forks source link

Remove number from directory #57

Open Bumbleboss opened 8 months ago

Bumbleboss commented 8 months ago

Background

My directory structure for content is:

1.blog-post-1/
  media/
    banner.png
  index.md
2.blog-post-2/
  media/
    banner.png
  index.md
....

Basically, the blog posts are structured with digits. @nuxt/content removes the number when releasing the blog posts which results in urls like example.com/blog/blog-post-1 and example.com/blog/blog-post-2

Proposal

I would like nuxt-content-assets to follow the same idea when exporting media to the new directory instead of /blog/2.blog-post-2/media/banner.png it would be /blog/blog-post-2/media/banner.png

davestewart commented 2 months ago

Hello!

I'm so sorry – I don't know how I missed this issue! Literally, today was the first time I've seen it.

Yeah; seems like a completely reasonable request, especially for static sites.

Let me get on it.