inverter 0.2.1 → 0.2.2
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 -0
- data/lib/inverter/concerns/inverter.rb +5 -0
- data/lib/inverter/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: f9f690d3662f0f18c84658e8a29adca5b6fac0b9
|
4
|
+
data.tar.gz: 535064670509e2b8a5a6223121630776763772e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c91a1f301761818c05fd5d60d02aa6bb1212bd11c53ff986efe28ac423d8cc0e4a668e406bcb7287689e333cd5ff495906356155d1dacd197e110b388db67e98
|
7
|
+
data.tar.gz: d0930d472b39cc9ee5a51f70c78b8a07ea9be9b6e951ef43fce073fc6a88138d21455384ee8d41e9fa6b05a05a6acb6bd2bb1cb0e9a16f1fca164d71cf0fa378
|
data/README.md
CHANGED
@@ -104,6 +104,7 @@ Inverter supports [chr](https://github.com/slate-studio/chr) out of the box. Inc
|
|
104
104
|
formSchema:
|
105
105
|
_page_title: { type: 'string', label: 'Title' }
|
106
106
|
_page_description: { type: 'text', label: 'Description' }
|
107
|
+
_page_keywords: { type: 'text', label: 'Keywords' }
|
107
108
|
_page_image_url: { type: 'string', label: 'Image URL' }
|
108
109
|
blocks: { type: 'inverter' }
|
109
110
|
```
|
@@ -6,6 +6,7 @@ module Mongoid
|
|
6
6
|
# attributes
|
7
7
|
field :_page_title, default: ''
|
8
8
|
field :_page_description, default: ''
|
9
|
+
field :_page_keywords, default: ''
|
9
10
|
field :_page_image_url, default: ''
|
10
11
|
|
11
12
|
field :_template_name
|
@@ -37,6 +38,10 @@ module Mongoid
|
|
37
38
|
::Inverter.meta_tags[:og][:description] = self._page_description
|
38
39
|
end
|
39
40
|
|
41
|
+
unless self._page_keywords.empty?
|
42
|
+
::Inverter.meta_tags[:keywords] = self._page_keywords
|
43
|
+
end
|
44
|
+
|
40
45
|
unless self._page_image_url.empty?
|
41
46
|
::Inverter.meta_tags[:og][:image] = self._page_image_url
|
42
47
|
end
|
data/lib/inverter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inverter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: render_anywhere
|