Skip to content

Commit 75d56cc

Browse files
committed
Merge pull request #61 from satoryu/embed_instagram
Create a plugin to embed instagram's photo/video
2 parents 240f911 + 1d3ef05 commit 75d56cc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

plugin/instagram.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# instagram.rb - embed your photo/videos in instagram to a diary
2+
#
3+
# Author: Tatsuya Sato
4+
# License: GPL
5+
6+
def instagram(code, width=612, height=700)
7+
<<-BODY
8+
<iframe src="//instagram.com/p/#{code}/embed/" width="#{width}" height="#{height}" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
9+
BODY
10+
end

0 commit comments

Comments
 (0)