From 4b56d60fe7da01d5680008b0301a3377d522a94d Mon Sep 17 00:00:00 2001 From: toshimaru Date: Fri, 4 Jan 2019 16:37:24 +0900 Subject: Add OG tags to layout.html.erb --- guides/source/index.html.erb | 5 ++--- guides/source/layout.html.erb | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'guides/source') diff --git a/guides/source/index.html.erb b/guides/source/index.html.erb index 76f01fea0a..10e388774c 100644 --- a/guides/source/index.html.erb +++ b/guides/source/index.html.erb @@ -1,6 +1,5 @@ -<% content_for :page_title do %> -Ruby on Rails Guides -<% end %> +<% content_for :page_title, "Ruby on Rails Guides" %> +<% content_for :description, "Ruby on Rails Guides" %> <% content_for :header_section do %> <%= render 'welcome' %> 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 @@ - <%= yield(:page_title) || 'Ruby on Rails Guides' %> + <%= yield(:page_title) %> @@ -14,6 +14,13 @@ + + + + + + + <% if @edge %> -- cgit v1.2.3