davestewart / nuxt-content-assets

Enable locally-located assets in Nuxt Content

Home Page:https://npmjs.com/package/nuxt-content-assets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove number from directory

Bumbleboss opened this issue · comments

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

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.