Images in content folder

Is this really an accepted answer? This is totally unsustainable.

Reason: If you decide to rename your folder later, you would have to update every link on the page.

Follow-up: Is there a more sustainable solution? Maybe even one that allows the MD links to work in the MD-view as well as in the hugo-generated view?

Background: I don’t like the idea to lock myself into hugo with all my content (as awesome as the tool is).

There is no such thing as “the MD-view”. The tools that you use may or may not work with your directory structure and images as you expect/want them to – and we’re talking about preview here, probably. But that has nothing to do with Hugo.

You don’t, as you have text files (MD) and images. Nothing is locked into Hugo, as Hugo just takes this content and transforms it to HTML.

And please do not hijack four year old posts. Whatever they’re talking about might well be outdated.

Which of these content structures do you wish to use?

Structure #1

content/
├── posts/
│   ├── _index.md
│   ├── a.jpg
│   ├── b.jpg
│   ├── post-1.md
│   └── post-2.md
└── _index.md

Structure #2

content/
├── posts/
│   ├── _index.md
│   ├── post-1.md
│   └── post-2.md
├── _index.md
├── a.jpg
└── b.jpg

Or something else?