Skip to content

Commit

Permalink
Merge pull request #707 from photonia-io/fix-meta-opengraph-twitter-c…
Browse files Browse the repository at this point in the history
…ard-descriptions

Fix meta, opengraph and twitter card descriptions
  • Loading branch information
janosrusiczki authored Apr 21, 2024
2 parents 4d188c6 + 8506027 commit 8cb80a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/layouts/_opengraph.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<meta name="description" content="<%= @photo.description %>">
<meta name="description" content="<%= strip_tags(@photo.description_html) %>">

<meta property="og:url" content="<%= page_url %>">
<meta property="og:type" content="website">
<meta property="og:title" content="<%= @photo.title %>">
<meta property="og:description" content="<%= @photo.description %>">
<meta property="og:description" content="<%= strip_tags(@photo.description_html) %>">
<meta property="og:image" content="<%= @photo.image_url(:large) %>">

<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="<%= request.host %>">
<meta property="twitter:url" content="<%= page_url %>">
<meta name="twitter:title" content="<%= @photo.title %>">
<meta name="twitter:description" content="<%= @photo.description %>">
<meta name="twitter:description" content="<%= strip_tags(@photo.description_html) %>">
<meta name="twitter:image" content="<%= @photo.image_url(:large) %>">

0 comments on commit 8cb80a6

Please sign in to comment.