cama_meta_tag 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/plugins/cama_meta_tag/main_helper.rb +10 -2
- data/lib/cama_meta_tag/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f33a233b0ecf1b2ef05734c1ea19079249a379b9
|
4
|
+
data.tar.gz: 50b8e14d50e3c81cfd2f7c3b0115a88c897f83a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b361f4528d35f48ac150bec0887fa422d91b18e9e2f50d34fcf69ff47f94d5869c34fd3cbeb61d8beab48d872c39540ed4a531b4e427e6c1c3395aa2e37916f
|
7
|
+
data.tar.gz: c0c57119ff90b13ee1ba3f117e9748296100f191a4b2bb7c9ac891e53f1a05059c7620476388cf92313b72f36ff96c77dcbe7b6c7c9798f2f6728ab8d16082c1
|
@@ -22,10 +22,18 @@ module Plugins::CamaMetaTag::MainHelper
|
|
22
22
|
author: page.get_option('seo_author').to_s.translate,
|
23
23
|
image: page.get_option('seo_image').to_s.translate
|
24
24
|
}
|
25
|
-
args[:seo_data][:title] = tmp[:title] if tmp[:title].present?
|
26
25
|
args[:seo_data][:keywords] = tmp[:keywords] if tmp[:keywords].present?
|
27
|
-
args[:seo_data][:description] = tmp[:descr] if tmp[:descr].present?
|
28
26
|
args[:seo_data][:author] = tmp[:author] if tmp[:author].present?
|
27
|
+
if tmp[:title].present?
|
28
|
+
args[:seo_data][:title] = tmp[:title]
|
29
|
+
args[:seo_data][:og][:title] = tmp[:title]
|
30
|
+
args[:seo_data][:twitter][:title] = tmp[:title]
|
31
|
+
end
|
32
|
+
if tmp[:descr].present?
|
33
|
+
args[:seo_data][:description] = tmp[:descr]
|
34
|
+
args[:seo_data][:og][:description] = tmp[:descr]
|
35
|
+
args[:seo_data][:twitter][:description] = tmp[:descr]
|
36
|
+
end
|
29
37
|
if tmp[:image].present?
|
30
38
|
args[:seo_data][:image] = tmp[:image]
|
31
39
|
args[:seo_data][:twitter][:image] = tmp[:image]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cama_meta_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|