What's your folder structure?

How do you personally handle Drafts, Images, Files, etc., in terms of workflow?

I'm thinking of the following:

  • /Drafts (initiate all writing here prior to sliding into /Posts or /Pages for publication)
  • /Files (other than images)
  • /Images (all images and graphics)
  • /Pages
  • /Posts
  • /Templates

Do you personally underscore Folders or individual files?

6 replies

My preferred folder structure looks something like this:

My blog
├─ 2021
│  ├─ 02-06 Pears
│  │  ├─ post.txt
│  │  ├─ _image.jpg
│  ├─ 03-08 Apples
│  │  ├─ post.txt
│  │  ├─ _image.jpg
│  ├─ 04-21 Bananas
│  │  ├─ post.txt
│  │  ├─ _image.jpg
├─ 2020
├─ 2019
├─ Drafts

The benefits of this structure are:

  • Each post is in its self-contained folder (all images in it are adjacent to the source file) instead of one messy global folder of images. This means I can embed the image in all the post.txt files using the following Markdown with a relative path: ![Caption](_image.jpg)
  • Each post is automatically correctly dated based on its path (e.g. 2021/02-06 Pears/post.txt)

I don't like editing templates locally so I don't have a Templates folder. As for drafts: I don't use them myself anymore – I'm happy to just edit my site live. If I was working on a site on which this wasn't possible then I would stick the post subfolder inside the Drafts folder, and move it outside when ready to publish (the relative paths will mean that any images won't break!).

Answered 2 years ago · Improve this answer

Is there a way to generate this structure automatically using Obsidian?

Answered 2 years ago · Improve this answer

I'm not sure! It might be worth making a post in Obsidian's forum

Answered 2 years ago · Improve this answer

When I embed the images in my post, it works! (I put the images in a self-contained folder with the post)

But, now the images are also individual posts on my Blot. :(

Answered 2 years ago · Improve this answer

To prevent images becoming their own post, you should start their file names with an underscore. This works for any file that Blot would ordinarily turn into a post. It also works for entire folders whose name starts with an underscore.

Answered 2 years ago · Improve this answer

I originally added images without an underscore and it created individual posts for them. I then added the underscore and moved them to the same folder as the post but there are still entries for the old image posts on the home page and archives. Using mono template but also tried with the default blog template.

Answered a year ago · Improve this answer

Markdown allowed
Question or feedback?
Contact us


developers 28 questions bug 14 questions posts 9 questions resolved 7 questions request 6 questions google-drive 5 questions configure 4 questions pages 3 questions added 3 questions meta 3 questions More tags →
Subscribe for changes
RSS Feed of latest questions