Hi,
I’m creating a new category “bookshop” on my site.
The folders are organised like so.
.
└── categories/
└── bookshop/
├── images
├── _index.en.md
├── book1/
│ ├── index.en.md
│ └── images/
└── book2/
├── index.en.md
└── images/
However,the images in my markdown file _index.en.md don’t show in the output (src=""
is empty). I noticed that they copy in /categories/bookshop/images/ in the output folder. However my config for category slug is like so in config.toml
[permalinks]
posts = '/:year/:month/:slugorfilename/'
categories = '/:slug/'
So they should get processed and copied in /bookshop/images/
If I manually set the url to url: /categories/bookshop
in the front matter, then the images display since they are next to the rendered file.
How can I make sure the images end up in the right location?
Goal:
.
└── public/
└── bookshop/
├── images/
└── index.html
Current output (wrong)
.
└── public/
├── bookshop/
│ └── index.html
└── categories/
└── bookshop/
└── images/