Skip to content

Commit

Permalink
Growstuff#816 For a photos, add opengraph
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Mar 28, 2016
1 parent 44f03a8 commit b77e5d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/views/photos/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
-content_for :title, @photo.title
- content_for :title, @photo.title
- content_for :opengraph do
<meta property="og:title" content="#{@photo.title}" />
<meta property="og:image" content="#{@photo.fullsize_url}" />
<meta property="og:image:user_generated" content="true" />
<meta property="og:type" content="website" />
<meta property="og:url" content="#{request.original_url}" />
<meta property="og:site_name" content="#{ENV['GROWSTUFF_SITE_NAME']}" />

.row
.col-md-6
Expand Down

0 comments on commit b77e5d0

Please sign in to comment.