Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading images from within the content folder #651

Closed
wellbrained opened this issue Nov 20, 2020 · 1 comment
Closed

Loading images from within the content folder #651

wellbrained opened this issue Nov 20, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@wellbrained
Copy link

Hi, while working with content organising the content with a folder structure where they have a folder for each article to include also images.

Example:

content/
├─ 2020/
│  ├─ article-01/
│  │  ├─ index.md
│  │  ├─ image-01.png
│  ├─ article-02/
│  │  ├─ index.md
│  │  ├─ image-01.png
│  ├─ article-03/
│  │  ├─ index.md
│  │  ├─ image-01.png
│  │  ├─ image-02.png

In that case it's also sorted by a sub-directory per year but that doesn't really matter.
The important thing here is that the real slug is the folder name with a MD file and multiple images if wanted which gets pulled only in that index.md (the name of the MD file shouldn't matter?).

Afaik all the images must be in the /static folder or with a workaround in /assets I believe. However there is no way currently to pull them in from /content like this.

Duplicating and managing the same folder structure within static seems a bit redundant and doesn't keep managing the contents easy imo.

@wellbrained wellbrained added the enhancement New feature or request label Nov 20, 2020
@davydnorris
Copy link

See the thread in #106 - this will show you how to get it working. Works well actually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants