seorel 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/seorel/helper.rb +7 -6
- data/lib/seorel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efcaa09bd4ce13a6f01401e92a281fc3e5909828
|
4
|
+
data.tar.gz: a1305abf9e9e5dbb8f58970ee09b321ed7ebb26b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e10ff58ad0795b28654cbf3109a54dee0ac8b67e66bcc215e5cd42ecc51dd2e172d28668dcb660bdc477ecaaec76408f001a06082beba5573d4d45c971103d48
|
7
|
+
data.tar.gz: c992544be338722cded68c717a741115db21368757bdbe533f115ad95b7210fa4e6282d371efec0e48792d2951da3e88253d5e1c0e62c60ce11ae9c5d1781b3c
|
data/README.md
CHANGED
data/lib/seorel/helper.rb
CHANGED
@@ -14,17 +14,18 @@ module Seorel
|
|
14
14
|
|
15
15
|
def render_open_graph
|
16
16
|
[
|
17
|
-
content_tag(:meta, nil,
|
18
|
-
content_tag(:meta, nil,
|
19
|
-
content_tag(:meta, nil,
|
20
|
-
content_tag(:meta, nil,
|
21
|
-
content_tag(:meta, nil,
|
17
|
+
content_tag(:meta, nil, property: 'og:type', content: 'website'),
|
18
|
+
content_tag(:meta, nil, property: 'og:url', content: request.url),
|
19
|
+
content_tag(:meta, nil, property: 'og:title', content: seorel_params.title),
|
20
|
+
content_tag(:meta, nil, property: 'og:description', content: seorel_params.description),
|
21
|
+
content_tag(:meta, nil, property: 'og:image', content: seorel_params.image),
|
22
|
+
content_tag(:meta, nil, property: 'og:locale', content: I18n.locale.to_s)
|
22
23
|
].join("\n").html_safe
|
23
24
|
end
|
24
25
|
|
25
26
|
def render_twitter_cards
|
26
27
|
[
|
27
|
-
content_tag(:meta, nil, name: 'twitter:card', content: '
|
28
|
+
content_tag(:meta, nil, name: 'twitter:card', content: 'summary_large_image'),
|
28
29
|
content_tag(:meta, nil, name: 'twitter:url', content: request.url),
|
29
30
|
content_tag(:meta, nil, name: 'twitter:title', content: seorel_params.title),
|
30
31
|
content_tag(:meta, nil, name: 'twitter:description', content: seorel_params.description),
|
data/lib/seorel/version.rb
CHANGED