Add Open Graph meta tags

This commit is contained in:
Marcin Kulik 2015-03-30 16:23:58 +00:00
parent 3c76b79683
commit 77ea5809f5
2 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,11 @@
<!-- oEmbed -->
<link rel="alternate" type="application/json+oembed" href="<%= page.asciicast_oembed_url(:json) %>" />
<link rel="alternate" type="text/xml+oembed" href="<%= page.asciicast_oembed_url(:xml) %>" />
<!-- Open Graph -->
<meta property="og:title" content="<%= page.asciicast_title %>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<%= asciicast_url(page.asciicast) %>" />
<meta property="og:image" content="<%= asciicast_url(page.asciicast, format: :png) %>" />
<meta property="og:description" content="<%= page.description %>" />
<meta property="og:site_name" content="asciinema.org" />

View File

@ -1,7 +1,6 @@
- content_for(:title, page.title)
- content_for(:head) do
link rel="alternate" type="application/json+oembed" href="#{page.asciicast_oembed_url(:json)}"
link rel="alternate" type="text/xml+oembed" href="#{page.asciicast_oembed_url(:xml)}"
= render 'discovery_tags', page: page
.asciicast-page
section.cinema