aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/layout.html.erb
diff options
context:
space:
mode:
authortoshimaru <me@toshimaru.net>2019-01-04 16:37:24 +0900
committertoshimaru <me@toshimaru.net>2019-01-09 13:23:22 +0900
commit4b56d60fe7da01d5680008b0301a3377d522a94d (patch)
tree3cbfdf0c128265f049b08435b8e1a943e781d033 /guides/source/layout.html.erb
parentc512d65d5d014562672902a8f53392b941d255a1 (diff)
downloadrails-4b56d60fe7da01d5680008b0301a3377d522a94d.tar.gz
rails-4b56d60fe7da01d5680008b0301a3377d522a94d.tar.bz2
rails-4b56d60fe7da01d5680008b0301a3377d522a94d.zip
Add OG tags to layout.html.erb
Diffstat (limited to 'guides/source/layout.html.erb')
-rw-r--r--guides/source/layout.html.erb9
1 files changed, 8 insertions, 1 deletions
diff --git a/guides/source/layout.html.erb b/guides/source/layout.html.erb
index 1f42d72756..65a003fceb 100644
--- a/guides/source/layout.html.erb
+++ b/guides/source/layout.html.erb
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title><%= yield(:page_title) || 'Ruby on Rails Guides' %></title>
+ <title><%= yield(:page_title) %></title>
<link rel="stylesheet" type="text/css" href="stylesheets/style.css" data-turbolinks-track="reload">
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
<link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shCore.css" data-turbolinks-track="reload">
@@ -14,6 +14,13 @@
<script src="javascripts/turbolinks.js" data-turbolinks-track="reload"></script>
<script src="javascripts/guides.js" data-turbolinks-track="reload"></script>
<script src="javascripts/responsive-tables.js" data-turbolinks-track="reload"></script>
+ <meta property="og:title" content="<%= yield(:page_title) %>" />
+ <meta name="description" content="<%= yield(:description) %>" />
+ <meta property="og:description" content="<%= yield(:description) %>" />
+ <meta property="og:locale" content="en_US" />
+ <meta property="og:site_name" content="Ruby on Rails Guides" />
+ <meta property="og:image" content="https://avatars.githubusercontent.com/u/4223" />
+ <meta property="og:type" content="website" />
</head>
<body class="guide">
<% if @edge %>