Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert image into octopress framework?

I have image terminal.png on directory /Users/tragicidea/Desktop/terminal.png. I want to insert that image on my post using this script

{% img /Users/tragicidea/Desktop/terminal.png %}

but my image does not appear on my post, what should I do?

like image 283
user1814327 Avatar asked Nov 21 '12 04:11

user1814327


2 Answers

copy your image in Octopress/source/images.

PS: Octopress(whatever you named it) directory is a repository directory for your blog.

then you can use img tag as

{% img left /images/terminal.png 350 350 'image' 'images' %}

like image 113
Akash Shende Avatar answered Sep 23 '22 23:09

Akash Shende


you should check this out: http://octopress.org/docs/plugins/image-tag/

example:

{% img center http://www.moviequotesandmore.com/image-files/avatar-6.jpg %}

like image 20
zx1986 Avatar answered Sep 23 '22 23:09

zx1986