scrivito_seo_page_extender 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6c8f08d0c4f8992bb57d0d2cd9037df0012132a
|
4
|
+
data.tar.gz: fa8753a5dacabf8cc0717f9eb8020142d578de24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa50cc95c59c9c6c3e007f9a238cd71bb9e9e020b0dbad50fd5d8698c3ec51edd693407e550b40ef0a5afb031b2814c21ef987625a98ded04d964714dfc5842e
|
7
|
+
data.tar.gz: 1ff54399bd624349e00c3924f2cd6a898f1a79634fcc3413fd96efaa4ce4d9eef1f043549f40e9ed1205f1be57086ee2febefec463599affa21e9df54dd14a70
|
data/README.md
CHANGED
@@ -45,10 +45,12 @@ Open Graph includes attributes which are not required everywhere. E.g. Video, Bo
|
|
45
45
|
<%= render 'seo_page_extender/open_graph/video', obj: @obj %>
|
46
46
|
```
|
47
47
|
|
48
|
+
### Page specific
|
49
|
+
|
48
50
|
Some pages has a specific `site_name`. You can define a method in your obj.rb to set one:
|
49
51
|
|
50
52
|
```ruby
|
51
|
-
def open_graph_site_name
|
53
|
+
def self.open_graph_site_name
|
52
54
|
return 'my_page_name' # e.g. imdb
|
53
55
|
end
|
54
56
|
```
|
@@ -121,7 +123,7 @@ The word density plugin lowercases your content. Therefore, the words in your st
|
|
121
123
|
|
122
124
|
### Google analytics
|
123
125
|
|
124
|
-
The partial that adds Google Analytics to your view can be rendered like this:
|
126
|
+
The partial that adds the standard implemetation of Google Analytics to your view can be rendered like this:
|
125
127
|
|
126
128
|
```xml
|
127
129
|
<%= render 'seo_page_extender/google_analytics', key: 'your-googleAnalytics-key' %>
|
@@ -2,10 +2,10 @@
|
|
2
2
|
<% if @obj[attribute].respond_to?('binary?') && @obj[attribute].binary? %>
|
3
3
|
<meta content="<%= scrivito_path(@obj[attribute]) %>" property="<%= name %>"/>
|
4
4
|
<% if @obj.is_a? Image %>
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
<meta content="<%= obj.width %>" property="og:image:width"/>
|
6
|
+
<meta content="<%= obj.height %>" property="og:image:height"/>
|
7
|
+
<% end %>
|
8
8
|
<% else %>
|
9
|
-
<meta content="<%= @obj.
|
9
|
+
<meta content="<%= seo_attribute_fallback(@obj, attribute.to_sym) %>" property="<%= name %>"/>
|
10
10
|
<% end %>
|
11
11
|
<% 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: 1.0.
|
4
|
+
version: 1.0.2
|
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-
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito_sdk
|