tweak met event stuff
This commit is contained in:
parent
b98c5d8226
commit
8ec1c8bb2e
1 changed files with 6 additions and 4 deletions
|
@ -1,14 +1,16 @@
|
|||
<% content_for :head do %>
|
||||
<% if item[:image] %>
|
||||
<meta property="og:image" content="<%= item[:image] %>" />
|
||||
<% end %>
|
||||
<meta property="og:title" content="<%= item[:title] %>" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="<%= url_for(item) %>" />
|
||||
<meta property="og:description" content="<%= item[:description] %>" />
|
||||
<meta property="og:site_name" content="Zeus WPI" />
|
||||
<meta name="twitter:label1" content="Time" />
|
||||
<meta name="twitter:data1" content="<%= item[:time].strftime '%A %d %B %Y %H:%M' %>" />
|
||||
<meta name="twitter:label2" content="Place" />
|
||||
<meta name="twitter:data2" content="<%= item[:location] %>" />
|
||||
<meta name="twitter:label1" value="Time" />
|
||||
<meta name="twitter:data1" value="<%= item[:time].strftime '%A %d %B %Y %H:%M' %>" />
|
||||
<meta name="twitter:label2" value="Place" />
|
||||
<meta name="twitter:data2" value="<%= item[:location] %>" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Reference in a new issue