File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 2
2
title: current_page.data.title!,
3
3
description: current_page.data.description,
4
4
keywords: %w[rails hotwire],
5
- index: true,
6
- icon: "/favicon.ico",
7
5
og: {
8
- title: :title,
9
- description: :description,
10
6
type: "article",
11
7
url: current_page.url,
12
- site_name: "Joy of Rails",
13
- locale: "en_US",
14
8
image: current_page.data.meta_image && asset_url(current_page.data.meta_image)
15
9
},
16
10
twitter: {
17
11
card: current_page.data.meta_image ? "summary_large_image" : "summary",
18
- site: "@joyofrails",
19
12
}
20
13
) %>
21
14
<%= render "application/skip_to_content" %>
Original file line number Diff line number Diff line change @@ -6,6 +6,19 @@ def seo_meta_tags
6
6
{ rel : "apple-touch-icon" , href : "/apple-touch-icon.png?v1.0" } ,
7
7
{ rel : "manifest" , href : "/manifest.webmanifest?v1.0" }
8
8
]
9
+ set_meta_tags index : true
10
+ set_meta_tags icon : "/favicon.ico"
11
+ set_meta_tags og : {
12
+ title : :title ,
13
+ description : :description ,
14
+ type : "article" ,
15
+ url : url_for ,
16
+ site_name : "Joy of Rails" ,
17
+ locale : "en_US"
18
+ }
19
+ set_meta_tags twitter : {
20
+ site : "@joyofrails"
21
+ }
9
22
display_meta_tags site : "Joy of Rails"
10
23
end
11
24
end
You can’t perform that action at this time.
0 commit comments