【发布时间】:2012-11-21 04:47:15
【问题描述】:
我在目录 /Users/tragicidea/Desktop/terminal.png 上有图像 terminal.png。我想使用此脚本在我的帖子中插入该图像
{% img /Users/tragicidea/Desktop/terminal.png %}
但我的图片没有出现在我的帖子中,我该怎么办?
【问题讨论】:
我在目录 /Users/tragicidea/Desktop/terminal.png 上有图像 terminal.png。我想使用此脚本在我的帖子中插入该图像
{% img /Users/tragicidea/Desktop/terminal.png %}
但我的图片没有出现在我的帖子中,我该怎么办?
【问题讨论】:
在 Octopress/source/images 中复制您的图像。
PS:Octopress(无论你如何命名)目录是您博客的存储库目录。
那么你可以使用img标签作为
{% img left /images/terminal.png 350 350 'image' 'images' %}
【讨论】:
您应该检查一下: http://octopress.org/docs/plugins/image-tag/
示例:
{% img center http://www.moviequotesandmore.com/image-files/avatar-6.jpg %}
【讨论】: