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 +4 -4
- data/README.md +4 -4
- data/lib/generators/rails_amp/templates/rails_amp_application.amp.erb +1 -2
- data/lib/rails_amp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f8f5df088e9fdf8500a6cd310d073c33120a228
|
|
4
|
+
data.tar.gz: f74d3bb4bf629eb232278451a2beb42ba88b07da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
-
<%=
|
|
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
|
|
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
|
|
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",
|
data/lib/rails_amp/version.rb
CHANGED