scrivito_seo_page_extender 0.91.0 → 0.92.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/app/concerns/meta_data_extender.rb +1 -1
- data/app/helper/seo_page_extender_helper.rb +1 -1
- data/app/views/seo_page_extender/_meta_data.html.erb +1 -1
- data/app/views/seo_page_extender/_meta_data_details.html.erb +2 -2
- data/app/views/seo_page_extender/_meta_robots.html.erb +5 -0
- data/lib/scrivito_seo_page_extender/version.rb +1 -1
- metadata +3 -4
- data/app/assets/javascripts/scrivito_seo_page_extender.js +0 -1
- data/app/assets/stylesheets/scrivito_seo_page_extender.css +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 236f034ea0be1c4c4b9341d539f560bb58a5a406
|
4
|
+
data.tar.gz: fb95eb9d63250a9acff9d527cd4be00aed22a925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0450b9800863e5cde61928482aa0e94109bd6dd235ad2dea9175254fe57c2a9c42288ee7a46edb86b99a8be40927455e5cdd0659d8827db755b9283689a692ab
|
7
|
+
data.tar.gz: e93af5a073eee555d5ad2d76b563dbf3774f5d178501d19e351b4aa1ef44cd17be62a5e9196801fe0282fc64d8e36576bd9523447d0199c217a5108fbf03ada9
|
data/README.md
CHANGED
@@ -143,4 +143,8 @@ If you need different canonical links, you can add the `meta_canonical` attribut
|
|
143
143
|
class MyObj < Obj
|
144
144
|
attribute :meta_canonical, :string
|
145
145
|
end
|
146
|
-
```
|
146
|
+
```
|
147
|
+
|
148
|
+
## Customization
|
149
|
+
|
150
|
+
If you use the default details views provided in this gem, we recommend to activate [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors) to utilize the tabs used by this gem.
|
@@ -11,6 +11,6 @@ module MetaDataExtender
|
|
11
11
|
base.attribute :meta_page_topic, :string
|
12
12
|
base.attribute :meta_page_type, :string
|
13
13
|
base.attribute :meta_audience, :multienum , values: ["all", "adult", "advanced", "artist", "business", "child", "college", "craft", "elementary", "elhi", "government", "grownup", "health", "high", "institution", "intermediate", "introductory", "law", "lawyer", "listeners", "military", "news", "older", "parent", "patient", "popular", "scholarly", "teacher", "tts", "viewers"]
|
14
|
-
base.attribute :meta_robots, :multienum, values: ["noindex", "nofollow", "noarchive", "nosnippet", "noimageindex", "notranslate"]
|
14
|
+
base.attribute :meta_robots, :multienum, values: ["noindex", "nofollow", "noarchive", "nosnippet", "noimageindex", "notranslate", "noodp"]
|
15
15
|
end
|
16
16
|
end
|
@@ -14,7 +14,7 @@ module SeoPageExtenderHelper
|
|
14
14
|
if obj.respond_to?(:meta_canonical) && obj.meta_canonical.present?
|
15
15
|
obj.meta_canonical
|
16
16
|
else
|
17
|
-
"https://#{request.raw_host_with_port + scrivito_path(obj)}"
|
17
|
+
"https://#{request.raw_host_with_port + (scrivito_path(obj).split('?').first)}"
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= render "seo_page_extender/meta_attribute", attribute: "meta_keywords", name: "keywords" -%>
|
2
2
|
<%= render "seo_page_extender/meta_attribute", attribute: "meta_description", name: "description" -%>
|
3
|
-
<%= render "seo_page_extender/
|
3
|
+
<%= render "seo_page_extender/meta_robots", attribute: "meta_robots" -%>
|
4
4
|
<%= render "seo_page_extender/meta_attribute", attribute: "meta_author", name: "author" -%>
|
5
5
|
<%= render "seo_page_extender/meta_attribute", attribute: "meta_publisher", name: "publisher" -%>
|
6
6
|
<%= render "seo_page_extender/meta_attribute", attribute: "meta_page_type", name: "pat_type" -%>
|
@@ -30,13 +30,13 @@
|
|
30
30
|
<%= scrivito_tag(:div, obj, :meta_audience) %>
|
31
31
|
<% end %>
|
32
32
|
|
33
|
-
<%= scrivito_details_for 'Robots' do %>
|
33
|
+
<%= scrivito_details_for 'Robots<small><a href="https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag" target="_blank">?</a></small>'.html_safe do %>
|
34
34
|
<%= scrivito_tag(:div, obj, :meta_robots) %>
|
35
35
|
<% end %>
|
36
36
|
|
37
37
|
<%= scrivito_details_for 'Canonical Link' do %>
|
38
38
|
<%= scrivito_tag(:div, obj, :meta_canonical) %>
|
39
39
|
<div class="text-info">
|
40
|
-
Using <strong><%=
|
40
|
+
Using <strong><%= canonical_link(@obj) %></strong> as default.
|
41
41
|
</div>
|
42
42
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_seo_page_extender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.92.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito_sdk
|
@@ -35,8 +35,6 @@ files:
|
|
35
35
|
- LICENSE
|
36
36
|
- README.md
|
37
37
|
- Rakefile
|
38
|
-
- app/assets/javascripts/scrivito_seo_page_extender.js
|
39
|
-
- app/assets/stylesheets/scrivito_seo_page_extender.css
|
40
38
|
- app/concerns/meta_data_extender.rb
|
41
39
|
- app/concerns/open_graph_extender.rb
|
42
40
|
- app/concerns/sitemap_extender.rb
|
@@ -50,6 +48,7 @@ files:
|
|
50
48
|
- app/views/seo_page_extender/_meta_attribute_open_graph_array.html.erb
|
51
49
|
- app/views/seo_page_extender/_meta_data.html.erb
|
52
50
|
- app/views/seo_page_extender/_meta_data_details.html.erb
|
51
|
+
- app/views/seo_page_extender/_meta_robots.html.erb
|
53
52
|
- app/views/seo_page_extender/_open_graph.html.erb
|
54
53
|
- app/views/seo_page_extender/_open_graph_attribute.html.erb
|
55
54
|
- app/views/seo_page_extender/_open_graph_details.html.erb
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require scrivito_advanced_editors
|