rails_amp 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 8a0baf278db9973b9bea593b26a6b0b8a0bb1da1
4
- data.tar.gz: b499f5a7fcc7198f1487a44515e6dec1a600a92f
3
+ metadata.gz: 7f8f5df088e9fdf8500a6cd310d073c33120a228
4
+ data.tar.gz: f74d3bb4bf629eb232278451a2beb42ba88b07da
5
5
  SHA512:
6
- metadata.gz: e20e49af5ac7f91c5359d83d61fc9343cbd0b374f6394dfc650586f41c6181782f255538565155ba1514c22c713da5bec5a26da80da31c61768bb3f52c7f3e53
7
- data.tar.gz: f5ac7fc3fe930e2389dc562d0b5b59222e4872505d733ce96b8f5e6b21e8ddabce43a16524b93b212c2b0f8ffc59d22ef7c96efb86618212656374ab10ab4fdd
6
+ metadata.gz: 645df9b500c4b328200576b2a704c901fed5f52da790b8e509205a33ba236b0262d3ec60be4b2b3e052a14cd7803030bc5e07dc8c14fe7690bb5e52cb89db186
7
+ data.tar.gz: fca1dbd2bbc80ba7a3f1b7ace7c1b694862746ad991b59eb5ede1c754f2bf0c555630b65b1ecce01d13b464663a1e412e1421f8f3ce347642efafbaf00a9027d
data/README.md CHANGED
@@ -209,8 +209,7 @@ In app/views/layouts/rails_amp_application.amp.erb:
209
209
  <link rel="canonical" href="<%= rails_amp_canonical_url %>" />
210
210
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
211
211
 
212
- <!-- Set page data type by JSON-LD and schema.org. -->
213
- <!-- If you don't use page data type, remove this block. -->
212
+ <!-- Set page data type by JSON-LD with schema.org. -->
214
213
  <script type="application/ld+json">
215
214
  {
216
215
  "@context": "http://schema.org",
@@ -228,16 +227,17 @@ In app/views/layouts/rails_amp_application.amp.erb:
228
227
  }
229
228
  </style>
230
229
 
231
- <%= rails_amp_google_analytics_page_tracking %>
230
+ <%= rails_amp_google_analytics_head %>
232
231
  <%= rails_amp_html_header %>
233
232
  </head>
234
233
  <body>
234
+ <%= rails_amp_google_analytics_page_tracking %>
235
235
  <%= yield %>
236
236
  </body>
237
237
  </html>
238
238
  ```
239
239
 
240
- Customize the page data type by JSON-LD and schema.org, and write custom css styles in the `<style amp-custom>` block. You can customize any other parts of this amp layout file as you like, but you need to follow the amp restrictions.
240
+ Customize the page data type by JSON-LD with schema.org, and write custom css styles in the `<style amp-custom>` block. You can customize any other parts of this amp layout file as you like, but you need to follow the amp restrictions.
241
241
 
242
242
  ### Canonical link for root_url(root_path)
243
243
 
@@ -6,8 +6,7 @@
6
6
  <link rel="canonical" href="<%= rails_amp_canonical_url %>" />
7
7
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
8
8
 
9
- <!-- Set page data type by JSON-LD and schema.org. -->
10
- <!-- If you don't use page data type, remove this block. -->
9
+ <!-- Set page data type by JSON-LD with schema.org. -->
11
10
  <script type="application/ld+json">
12
11
  {
13
12
  "@context": "http://schema.org",
@@ -1,3 +1,3 @@
1
1
  module RailsAmp
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_amp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takafumi Yamano