From 77ea5809f5370cd3ba60bba4a7f800f1a2d24614 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 30 Mar 2015 16:23:58 +0000 Subject: [PATCH] Add Open Graph meta tags --- app/views/asciicasts/_discovery_tags.html.erb | 11 +++++++++++ app/views/asciicasts/show.html.slim | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 app/views/asciicasts/_discovery_tags.html.erb diff --git a/app/views/asciicasts/_discovery_tags.html.erb b/app/views/asciicasts/_discovery_tags.html.erb new file mode 100644 index 0000000..f2e50b7 --- /dev/null +++ b/app/views/asciicasts/_discovery_tags.html.erb @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/app/views/asciicasts/show.html.slim b/app/views/asciicasts/show.html.slim index 18b0ff6..8049295 100644 --- a/app/views/asciicasts/show.html.slim +++ b/app/views/asciicasts/show.html.slim @@ -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