cama_meta_tag 1.7 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f820766a56fe6eb7875859a8153eb97bb17c4ddad7b222f9b39aec5f3438aded
|
4
|
+
data.tar.gz: 52bff464e68cc4d17d966921acbe458ef94cf81ff7d0493b0ccbc7952f07da17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 486ffaf74ba4192e1a772475d563f3ff890570914917b7fe215e8d33f9b9f388e9156772188e85553cda997ad5cc4265019bee1dce74ce0af563c355f86d8d31
|
7
|
+
data.tar.gz: '07925587bcecfcf0706a27c19521fdd3671636d501e3ed3bae9295ed4c58e27e0e4b8ad6d439e1affbf06771e5b37e92884c8e686980bd706b2f458368ca0672'
|
@@ -20,10 +20,12 @@ module Plugins::CamaMetaTag::MainHelper
|
|
20
20
|
keywords: page.get_option('keywords').to_s.translate,
|
21
21
|
descr: page.get_option('seo_description').to_s.translate,
|
22
22
|
author: page.get_option('seo_author').to_s.translate,
|
23
|
-
image: page.get_option('seo_image').to_s.translate
|
23
|
+
image: page.get_option('seo_image').to_s.translate,
|
24
|
+
canonical: page.get_option('seo_canonical').to_s.translate
|
24
25
|
}
|
25
26
|
args[:seo_data][:keywords] = tmp[:keywords] if tmp[:keywords].present?
|
26
27
|
args[:seo_data][:author] = tmp[:author] if tmp[:author].present?
|
28
|
+
args[:seo_data][:canonical] = tmp[:canonical] if tmp[:canonical].present?
|
27
29
|
if tmp[:title].present?
|
28
30
|
args[:seo_data][:title] = tmp[:title]
|
29
31
|
args[:seo_data][:og][:title] = tmp[:title]
|
@@ -27,6 +27,10 @@
|
|
27
27
|
<%= label_tag 'options[seo_image]', t('.seo_image', default: t('.seo_image', locale: :en)) %> <br>
|
28
28
|
<%= hidden_field_tag 'options[seo_image]', post.get_option('seo_image') %>
|
29
29
|
</div>
|
30
|
+
<div class="form-group">
|
31
|
+
<%= label_tag 'options[seo_canonical]', t('.seo_canonical', default: t('.seo_canonical', locale: :en)) %> <br>
|
32
|
+
<%= text_field_tag 'options[seo_canonical]', post.get_option('seo_canonical'), class: 'form-control' %>
|
33
|
+
</div>
|
30
34
|
</div>
|
31
35
|
</div>
|
32
36
|
<script type="application/javascript">
|
data/config/locales/en.yml
CHANGED
@@ -15,6 +15,7 @@ en:
|
|
15
15
|
seo_descr: 'Description'
|
16
16
|
seo_author: 'Author'
|
17
17
|
seo_image: 'Image (Ideal: 1200 x 1200 or larger with a square aspect ratio)'
|
18
|
+
seo_canonical: 'Canonical Link'
|
18
19
|
|
19
20
|
nl:
|
20
21
|
plugins:
|
@@ -33,6 +34,7 @@ nl:
|
|
33
34
|
seo_descr: 'Beschrijving'
|
34
35
|
seo_author: 'Auteur'
|
35
36
|
seo_image: 'Afbeelding (Ideal: 1200 x 1200 of groter met een vierkant aspect ratio)'
|
37
|
+
seo_canonical: 'Canonieke Link'
|
36
38
|
|
37
39
|
pt:
|
38
40
|
plugins:
|
@@ -51,7 +53,7 @@ pt:
|
|
51
53
|
seo_descr: 'Descrição'
|
52
54
|
seo_author: 'Autor'
|
53
55
|
seo_image: 'Imagem (Ideal: 1200 x 1200 ou maior com uma relação de aspecto quadrada)'
|
54
|
-
|
56
|
+
seo_canonical: 'Link Canônico'
|
55
57
|
|
56
58
|
|
57
59
|
pt-BR:
|
@@ -71,6 +73,7 @@ pt-BR:
|
|
71
73
|
seo_descr: 'Descrição'
|
72
74
|
seo_author: 'Autor'
|
73
75
|
seo_image: 'Imagem (Ideal: 1200 x 1200 ou maior com uma relação de aspecto quadrada)'
|
76
|
+
seo_canonical: 'Canonical Link'
|
74
77
|
|
75
78
|
|
76
79
|
|
@@ -91,6 +94,7 @@ de:
|
|
91
94
|
seo_descr: 'Beschreibung'
|
92
95
|
seo_author: 'Autor'
|
93
96
|
seo_image: 'Bild (Ideal: 1200 x 1200 oder größer mit einem quadratischen Seitenverhältnis)'
|
97
|
+
seo_canonical: 'Kanonischer Link'
|
94
98
|
|
95
99
|
|
96
100
|
it:
|
@@ -110,6 +114,7 @@ it:
|
|
110
114
|
seo_descr: 'Descrizione'
|
111
115
|
seo_author: 'Autore'
|
112
116
|
seo_image: 'Immagine (ideale: 1200 x 1200 o superiore con un rapporto di aspetto di quadratura)'
|
117
|
+
seo_canonical: 'Collegamento Canonico'
|
113
118
|
|
114
119
|
zh-CN:
|
115
120
|
plugins:
|
@@ -128,6 +133,7 @@ zh-CN:
|
|
128
133
|
seo_descr: '描述'
|
129
134
|
seo_author: '作者'
|
130
135
|
seo_image: '图片(理想:1200 x 1200或更大,正方形高宽比)'
|
136
|
+
seo_canonical: '规范链接'
|
131
137
|
|
132
138
|
ru:
|
133
139
|
plugins:
|
@@ -146,6 +152,7 @@ ru:
|
|
146
152
|
seo_descr: 'Описание'
|
147
153
|
seo_author: 'автор'
|
148
154
|
seo_image: 'Изображение (Идеально: 1200 х 1200 или больше с квадратным соотношением сторон)'
|
155
|
+
seo_canonical: 'каноническая ссылка'
|
149
156
|
|
150
157
|
es:
|
151
158
|
plugins:
|
@@ -164,3 +171,4 @@ es:
|
|
164
171
|
seo_descr: 'Descripción'
|
165
172
|
seo_author: 'Autor'
|
166
173
|
seo_image: 'Imagen (Ideal: 1200 x 1200 o mayor con una relación de aspecto cuadrada)'
|
174
|
+
seo_canonical: 'Enlace Canónico'
|
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:
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -100,7 +100,7 @@ homepage: https://github.com/owen2345/camaleon-cms-seo
|
|
100
100
|
licenses:
|
101
101
|
- MIT
|
102
102
|
metadata: {}
|
103
|
-
post_install_message:
|
103
|
+
post_install_message:
|
104
104
|
rdoc_options: []
|
105
105
|
require_paths:
|
106
106
|
- lib
|
@@ -115,46 +115,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
|
119
|
-
|
120
|
-
signing_key:
|
118
|
+
rubygems_version: 3.1.2
|
119
|
+
signing_key:
|
121
120
|
specification_version: 4
|
122
121
|
summary: Permit to manage the seo attributes for each page of Camaleon CMS.
|
123
122
|
test_files:
|
124
|
-
- test/
|
123
|
+
- test/dummy/app/controllers/application_controller.rb
|
124
|
+
- test/dummy/app/views/layouts/application.html.erb
|
125
125
|
- test/dummy/app/assets/javascripts/application.js
|
126
126
|
- test/dummy/app/assets/stylesheets/application.css
|
127
|
-
- test/dummy/app/controllers/application_controller.rb
|
128
127
|
- test/dummy/app/helpers/application_helper.rb
|
129
|
-
- test/dummy/app/views/layouts/application.html.erb
|
130
|
-
- test/dummy/bin/bundle
|
131
|
-
- test/dummy/bin/rails
|
132
128
|
- test/dummy/bin/rake
|
133
129
|
- test/dummy/bin/setup
|
134
|
-
- test/dummy/
|
135
|
-
- test/dummy/
|
136
|
-
- test/dummy/config/
|
137
|
-
- test/dummy/config/
|
138
|
-
- test/dummy/config/
|
130
|
+
- test/dummy/bin/bundle
|
131
|
+
- test/dummy/bin/rails
|
132
|
+
- test/dummy/config/secrets.yml
|
133
|
+
- test/dummy/config/routes.rb
|
134
|
+
- test/dummy/config/locales/en.yml
|
139
135
|
- test/dummy/config/environments/production.rb
|
136
|
+
- test/dummy/config/environments/development.rb
|
140
137
|
- test/dummy/config/environments/test.rb
|
141
|
-
- test/dummy/config/
|
138
|
+
- test/dummy/config/environment.rb
|
139
|
+
- test/dummy/config/application.rb
|
140
|
+
- test/dummy/config/database.yml
|
141
|
+
- test/dummy/config/boot.rb
|
142
142
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
143
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
144
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
145
|
-
- test/dummy/config/initializers/inflections.rb
|
146
143
|
- test/dummy/config/initializers/mime_types.rb
|
144
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
147
145
|
- test/dummy/config/initializers/session_store.rb
|
148
146
|
- test/dummy/config/initializers/wrap_parameters.rb
|
149
|
-
- test/dummy/config/
|
150
|
-
- test/dummy/config/
|
151
|
-
- test/dummy/config/
|
147
|
+
- test/dummy/config/initializers/assets.rb
|
148
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
149
|
+
- test/dummy/config/initializers/inflections.rb
|
152
150
|
- test/dummy/config.ru
|
153
|
-
- test/dummy/
|
151
|
+
- test/dummy/Rakefile
|
152
|
+
- test/dummy/public/favicon.ico
|
154
153
|
- test/dummy/public/422.html
|
155
154
|
- test/dummy/public/500.html
|
156
|
-
- test/dummy/public/
|
157
|
-
- test/dummy/Rakefile
|
155
|
+
- test/dummy/public/404.html
|
158
156
|
- test/dummy/README.rdoc
|
157
|
+
- test/cama_meta_tag_test.rb
|
159
158
|
- test/integration/navigation_test.rb
|
160
159
|
- test/test_helper.rb
|