scrivito_seo_page_extender 1.2.1 → 1.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/app/concerns/meta_data_extender.rb +10 -10
- data/app/concerns/open_graph_extender.rb +36 -36
- data/app/concerns/sitemap_extender.rb +3 -3
- data/app/concerns/twitter_cards_extender.rb +22 -22
- data/app/views/seo_page_extender/_twitter_cards.html.erb +1 -0
- data/app/views/seo_page_extender/_twitter_cards_details.html.erb +4 -0
- data/lib/scrivito_seo_page_extender/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: f0a875d9e13a898e2e6706e9342647f6b9c788ad
|
4
|
+
data.tar.gz: d3066cf169a5bf7c26153311761a0d2230093df6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c164e2f86bbdb741e409316dc6297961cf1cc816b3bbdf23f936c9f5e0ccb01bd0a28176ead9540fb6a75cc542a941b6f61f4ce049521d2cdb8c2d884a5ec547
|
7
|
+
data.tar.gz: 1df697773284fbb9b26327d77ad73c1e906ec8a6796907eae7ac6acd4c777703e9d358324aa2c274af40c018fcaebeea6000dcc64778138805bcec0f7045d456
|
data/README.md
CHANGED
@@ -252,6 +252,7 @@ en:
|
|
252
252
|
tc_creator: '<h3>Creator <small>Twitter name of the creator of this page e.g. @gertimon</small></h3>'
|
253
253
|
tc_description: 'Description'
|
254
254
|
tc_image: 'Image'
|
255
|
+
tc_image_alt: 'Image Description'
|
255
256
|
tc_more_about: 'More about Twitter cards'
|
256
257
|
tc_player_dimension: 'Dimension'
|
257
258
|
tc_player_height: 'Height'
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module MetaDataExtender
|
2
2
|
def self.included(base)
|
3
|
+
base.attribute :meta_author, :string
|
4
|
+
base.attribute :meta_copyright, :string
|
3
5
|
base.attribute :meta_description, :string
|
4
|
-
base.attribute :meta_keywords,
|
5
|
-
base.attribute :
|
6
|
-
base.attribute :meta_publisher, :string
|
7
|
-
base.attribute :meta_copyright, :string
|
6
|
+
base.attribute :meta_keywords, :stringlist
|
7
|
+
base.attribute :meta_publisher, :string
|
8
8
|
|
9
|
-
base.attribute :meta_canonical,
|
9
|
+
base.attribute :meta_canonical, :string
|
10
10
|
|
11
|
-
base.attribute :
|
12
|
-
base.attribute :
|
13
|
-
base.attribute :
|
14
|
-
base.attribute :meta_robots,
|
11
|
+
base.attribute :meta_audience, :multienum, values: %w[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]
|
12
|
+
base.attribute :meta_page_topic, :string
|
13
|
+
base.attribute :meta_page_type, :string
|
14
|
+
base.attribute :meta_robots, :multienum, values: %w[noindex nofollow noarchive nosnippet noimageindex notranslate noodp]
|
15
15
|
end
|
16
|
-
end
|
16
|
+
end
|
@@ -1,48 +1,48 @@
|
|
1
1
|
module OpenGraphExtender
|
2
2
|
def self.included(base)
|
3
|
-
base.attribute :
|
4
|
-
base.attribute :
|
5
|
-
base.attribute :og_locale,
|
6
|
-
base.attribute :og_locale_alternate,
|
7
|
-
base.attribute :
|
8
|
-
base.attribute :
|
9
|
-
|
10
|
-
base.attribute :
|
11
|
-
base.attribute :
|
12
|
-
base.attribute :og_video,
|
13
|
-
|
14
|
-
base.attribute :
|
3
|
+
base.attribute :og_description, :string
|
4
|
+
base.attribute :og_determiner, :string
|
5
|
+
base.attribute :og_locale, :string
|
6
|
+
base.attribute :og_locale_alternate, :stringlist
|
7
|
+
base.attribute :og_title, :string
|
8
|
+
base.attribute :og_type, :enum, values: ['website', 'article', 'blog', 'book', 'profile', 'music.song', 'music.album', 'music.playlist', 'music.radiostation', 'video.movie', 'video.episode', 'video.tv_show', 'video.other']
|
9
|
+
|
10
|
+
base.attribute :og_audio, :reference
|
11
|
+
base.attribute :og_image, :reference
|
12
|
+
base.attribute :og_video, :reference
|
13
|
+
|
14
|
+
base.attribute :article_author, :stringlist
|
15
15
|
base.attribute :article_expiration_time, :date
|
16
|
-
base.attribute :
|
17
|
-
base.attribute :article_section,
|
18
|
-
base.attribute :article_tag,
|
16
|
+
base.attribute :article_published_time, :date
|
17
|
+
base.attribute :article_section, :string
|
18
|
+
base.attribute :article_tag, :stringlist
|
19
19
|
|
20
|
-
base.attribute :book_author,
|
21
|
-
base.attribute :book_isbn,
|
22
|
-
base.attribute :book_release_date,
|
23
|
-
base.attribute :book_tag,
|
20
|
+
base.attribute :book_author, :stringlist
|
21
|
+
base.attribute :book_isbn, :string
|
22
|
+
base.attribute :book_release_date, :date
|
23
|
+
base.attribute :book_tag, :stringlist
|
24
24
|
|
25
|
-
base.attribute :profile_first_name,
|
26
|
-
base.attribute :
|
27
|
-
base.attribute :
|
28
|
-
base.attribute :
|
25
|
+
base.attribute :profile_first_name, :string
|
26
|
+
base.attribute :profile_gender, :enum, values: %w[male female]
|
27
|
+
base.attribute :profile_last_name, :string
|
28
|
+
base.attribute :profile_username, :string
|
29
29
|
|
30
30
|
# Video Attributes
|
31
|
-
base.attribute :video_actor,
|
32
|
-
base.attribute :video_actor_role,
|
33
|
-
base.attribute :video_director,
|
34
|
-
base.attribute :
|
35
|
-
base.attribute :
|
36
|
-
base.attribute :
|
37
|
-
base.attribute :video_tag,
|
38
|
-
base.attribute :
|
31
|
+
base.attribute :video_actor, :stringlist
|
32
|
+
base.attribute :video_actor_role, :string
|
33
|
+
base.attribute :video_director, :stringlist
|
34
|
+
base.attribute :video_duration, :string
|
35
|
+
base.attribute :video_release_date, :date
|
36
|
+
base.attribute :video_series, :string
|
37
|
+
base.attribute :video_tag, :stringlist
|
38
|
+
base.attribute :video_writer, :stringlist
|
39
39
|
|
40
40
|
# Music Attributes
|
41
|
-
base.attribute :
|
42
|
-
base.attribute :
|
43
|
-
base.attribute :
|
44
|
-
base.attribute :
|
45
|
-
base.attribute :music_song,
|
41
|
+
base.attribute :music_album, :stringlist
|
42
|
+
base.attribute :music_creator, :string
|
43
|
+
base.attribute :music_duration, :string
|
44
|
+
base.attribute :music_musician, :stringlist
|
45
|
+
base.attribute :music_song, :stringlist
|
46
46
|
|
47
47
|
def image_width
|
48
48
|
self.og_image.meta_data[:width]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module SitemapExtender
|
2
2
|
def self.included(base)
|
3
|
-
base.attribute :sitemap_frequency, :enum, values: [
|
4
|
-
base.attribute :sitemap_priority,
|
3
|
+
base.attribute :sitemap_frequency, :enum, values: %w[always hourly daily weekly monthly yearly never]
|
4
|
+
base.attribute :sitemap_priority, :enum, values: ['0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1.0']
|
5
5
|
end
|
6
|
-
end
|
6
|
+
end
|
@@ -1,33 +1,33 @@
|
|
1
1
|
module TwitterCardsExtender
|
2
2
|
def self.included(base)
|
3
3
|
# General Attributes
|
4
|
-
base.attribute :tc_card,
|
5
|
-
base.attribute :tc_creator,
|
6
|
-
base.attribute :
|
7
|
-
base.attribute :
|
8
|
-
base.attribute :
|
4
|
+
base.attribute :tc_card, :enum, values: %w[summary summary_large_image app player]
|
5
|
+
base.attribute :tc_creator, :string
|
6
|
+
base.attribute :tc_description, :string
|
7
|
+
base.attribute :tc_site, :string
|
8
|
+
base.attribute :tc_title, :string
|
9
9
|
|
10
10
|
# Image and Gallery
|
11
|
-
base.attribute :tc_image,
|
12
|
-
base.attribute :tc_image_alt,
|
11
|
+
base.attribute :tc_image, :reference
|
12
|
+
base.attribute :tc_image_alt, :string
|
13
13
|
|
14
14
|
# For type app
|
15
|
-
base.attribute :
|
16
|
-
base.attribute :
|
17
|
-
base.attribute :
|
18
|
-
base.attribute :tc_app_id_iphone,
|
19
|
-
base.attribute :
|
20
|
-
base.attribute :
|
21
|
-
base.attribute :
|
22
|
-
base.attribute :
|
23
|
-
base.attribute :
|
24
|
-
base.attribute :
|
15
|
+
base.attribute :tc_app_country, :string
|
16
|
+
base.attribute :tc_app_id_googleplay, :string
|
17
|
+
base.attribute :tc_app_id_ipad, :string
|
18
|
+
base.attribute :tc_app_id_iphone, :string
|
19
|
+
base.attribute :tc_app_name_googleplay, :string
|
20
|
+
base.attribute :tc_app_name_ipad, :string
|
21
|
+
base.attribute :tc_app_name_iphone, :string
|
22
|
+
base.attribute :tc_app_url_googleplay, :string
|
23
|
+
base.attribute :tc_app_url_ipad, :string
|
24
|
+
base.attribute :tc_app_url_iphone, :string
|
25
25
|
|
26
26
|
# For type Player
|
27
|
-
base.attribute :tc_player,
|
28
|
-
base.attribute :
|
29
|
-
base.attribute :
|
30
|
-
base.attribute :tc_player_stream, :string
|
27
|
+
base.attribute :tc_player, :string
|
28
|
+
base.attribute :tc_player_height, :string
|
29
|
+
base.attribute :tc_player_stream, :string
|
31
30
|
base.attribute :tc_player_stream_content_type, :string
|
31
|
+
base.attribute :tc_player_width, :string
|
32
32
|
end
|
33
|
-
end
|
33
|
+
end
|
@@ -4,6 +4,7 @@
|
|
4
4
|
<%= render "seo_page_extender/meta_attribute", attribute: "tc_title", name: "twitter:title" -%>
|
5
5
|
<%= render "seo_page_extender/meta_attribute", attribute: "tc_description", name: "twitter:description" -%>
|
6
6
|
<%= render "seo_page_extender/meta_attribute", attribute: "tc_image", name: "twitter:image" -%>
|
7
|
+
<%= render "seo_page_extender/meta_attribute", attribute: "tc_image_alt", name: "twitter:image:alt" -%>
|
7
8
|
<%= render "seo_page_extender/meta_attribute", attribute: "tc_app_name_iphone", name: "twitter:app:name:iphone" -%>
|
8
9
|
<%= render "seo_page_extender/meta_attribute", attribute: "tc_app_id_iphone", name: "twitter:app:id:iphone" -%>
|
9
10
|
<%= render "seo_page_extender/meta_attribute", attribute: "tc_app_url_iphone", name: "twitter:url:iphone" -%>
|
@@ -30,6 +30,10 @@
|
|
30
30
|
<%= scrivito_details_for t('scrivito_seo_page_extender.details.twitter_cards_extender.tc_image', default: 'Image') do %>
|
31
31
|
<%= scrivito_tag(:div, obj, :tc_image) %>
|
32
32
|
<% end %>
|
33
|
+
|
34
|
+
<%= scrivito_details_for t('scrivito_seo_page_extender.details.twitter_cards_extender.tc_image_alt', default: 'Image Description') do %>
|
35
|
+
<%= scrivito_tag(:div, obj, :tc_image_alt) %>
|
36
|
+
<% end %>
|
33
37
|
</div>
|
34
38
|
|
35
39
|
<div class="tab-panel" id="edit-twitter-card-app">
|
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.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito_sdk
|