How to insert image into octopress framework?
Asked Answered
P

2

18

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?

Perot answered 21/11, 2012 at 4:47 Comment(0)
P
39

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' %}

Physoclistous answered 19/12, 2012 at 16:40 Comment(0)
H
9

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

example:

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

Hunnish answered 1/3, 2013 at 6:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.