Skip to content

Commit

Permalink
Merge pull request #61 from satoryu/embed_instagram
Browse files Browse the repository at this point in the history
Create a plugin to embed instagram's photo/video
  • Loading branch information
tdtds committed Jul 11, 2013
2 parents 240f911 + 1d3ef05 commit 75d56cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin/instagram.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# instagram.rb - embed your photo/videos in instagram to a diary
#
# Author: Tatsuya Sato
# License: GPL

def instagram(code, width=612, height=700)
<<-BODY
<iframe src="//instagram.com/p/#{code}/embed/" width="#{width}" height="#{height}" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
BODY
end

0 comments on commit 75d56cc

Please sign in to comment.