emacsorphanage / org-page

[INACTIVE] A static site generator based on Emacs and org mode.
673 stars 99 forks source link

Add images to posts #182

Closed Linuus closed 8 years ago

Linuus commented 8 years ago

Hi!

I'm trying to add images to my org blog posts and I can only make it work with web urls so far, not local files.

Should I put my images somewhere special? Is it even possible?

smaximov commented 8 years ago

Place an image (e.g., img.png) to the directory where your blog post is stored, then you can add it to the post using following link: file:img.png. Example layout:

/blog
├── img.png
└── post.org

…and somewhere in post.org:

...

#+caption:Optional caption
[[file:img.png]]

...
Linuus commented 8 years ago

@smaximov Cool! Thanks!