amp_base_theme 0.0.5 → 0.0.6

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: 4ac63819c7bc727bb89a91c710a105cdf7d3e85b1a28d9336baaba4cd7902dd4
4
- data.tar.gz: 1fb71272b3abab8fdae4f0e916a02dfa0dd9c54043ab334ac73dab40d0de6403
3
+ metadata.gz: cc001805b5bb18e645aff10343360543e4a58e4b927058780e5387fa2853213d
4
+ data.tar.gz: 9fb5566b8441d53c4b1ca3c8b1cf33223bd896b11d82dd2dd9c076a72763f233
5
5
  SHA512:
6
- metadata.gz: 478ab6f87bffa95780a14b585e2764a0e8c52b76a141f45066d476f24adf1d4507683e68aad37c787b1bfccc75b7adaab19ee6271a6bf4dd5f2a999b160c3980
7
- data.tar.gz: ca193ff8883c61120fa6bdbfd8a8e9c89eec13dca446ed1aa0bb17de645df5f3ffe290a8d93f18b760f5b59549740b2f89fa1a877eea052604938732cfa45056
6
+ metadata.gz: 664798a70a22ceedcfdf3cbdd42c3fc701bc5c54875d85df87251358209b6caee4260de8d54dfeb34a6b5d996bc261e67841c2d7842c16070b7bae329eebd3e2
7
+ data.tar.gz: e3c6a7e9e9770bb8eeaea3c36d26cf254add1bc924b0f9a29057afa4bdc3e0c7ea6d46da57f3ea1ab82ed279a9a78261e5d0d307b8e0736bf8f1484b03de4853
data/404.md CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- layout: page
2
+ layout: default
3
3
  title: 404 – File not found
4
4
  ---
@@ -0,0 +1,3 @@
1
+ ### 0.0.5
2
+
3
+ generation of sitemaps, feed and pwa works
@@ -1,3 +1,4 @@
1
+ - name: amp-story
1
2
  - name: amp-3d-gltf
2
3
  - name: amp-3q-player
3
4
  - name: amp-access-laterpay
File without changes
File without changes
@@ -16,6 +16,19 @@
16
16
 
17
17
  {% endif %}
18
18
 
19
+ {% if page.amp_type == "story" %}
20
+
21
+ {% if component_keys contains "amp-story" %}{% else %}
22
+
23
+ {% assign story_comp = site.data.amp_components | where: "name", "amp-story" %}
24
+ {% assign components = components | concat: story_comp %}
25
+ {% assign comp_name = "amp-story" | split: "" %}
26
+ {% assign component_keys = component_keys | concat: comp_name %}
27
+
28
+ {% endif %}
29
+
30
+ {% endif %}
31
+
19
32
  {% if site.google_analytics or site.facebook_analytics %}
20
33
  {% if component_keys contains "amp-analytics" %}{% else %}
21
34
 
@@ -1,3 +1,10 @@
1
- <style amp-custom>
1
+ {% if site.google_fonts %}
2
+
3
+ {% assign family_param = site.google_fonts | join: "|"" | replace: " ", "+" %}
4
+ <link href="https://fonts.googleapis.com/css?family={{ family_param }}" rel="stylesheet">
2
5
 
6
+ {% endif %}
7
+
8
+ <style amp-custom>
9
+
3
10
  </style>
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: compress
3
+ ---
4
+
5
+ <!doctype html>
6
+ <html ⚡>
7
+ {% include head.html %}
8
+
9
+ <body>
10
+ {% if page.amp_type =="story" %}
11
+ {% include amp-story/body.html %}
12
+ {% else %}
13
+ {{ content }}
14
+ {% endif %}
15
+ {% include foot.html %}
16
+ </body>
17
+
18
+ </html>
@@ -1,14 +1,6 @@
1
1
  ---
2
- layout: compress
2
+ layout: amp-base
3
+ amp_type: 'website'
3
4
  ---
4
5
 
5
- <!doctype html>
6
- <html ⚡>
7
- {% include head.html %}
8
-
9
- <body>
10
- {{ content }}
11
- {% include footer.html %}
12
- </body>
13
-
14
- </html>
6
+ {{ content }}
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: amp-base
3
+ amp_type: 'story'
4
+ ---
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: amp-base
3
+ amp_type: 'website'
4
+ ---
5
+
6
+ {{ content }}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amp_base_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Himsel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-30 00:00:00.000000000 Z
11
+ date: 2020-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -51,10 +51,11 @@ files:
51
51
  - README.md
52
52
  - _data/amp_components.yaml
53
53
  - _data/pwa_ignore.yaml
54
+ - _includes/amp-story/body.html
54
55
  - _includes/analytics/cookie-consent.html
55
56
  - _includes/analytics/facebook-analytics.html
56
57
  - _includes/analytics/google-analytics.html
57
- - _includes/footer.html
58
+ - _includes/foot.html
58
59
  - _includes/head.html
59
60
  - _includes/head/amp-boilerplate.html
60
61
  - _includes/head/amp-components.html
@@ -62,10 +63,11 @@ files:
62
63
  - _includes/head/seo.html
63
64
  - _includes/head/structured-data.html
64
65
  - _includes/pwa/sw.html
66
+ - _layouts/amp-base.html
65
67
  - _layouts/compress.html
66
68
  - _layouts/default.html
67
- - _layouts/page.html
68
- - _layouts/post.html
69
+ - _layouts/story.html
70
+ - _layouts/website.html
69
71
  - assets/_headers
70
72
  - assets/feed.xml
71
73
  - assets/google-news.xml
@@ -1,5 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {{ content }}
@@ -1,5 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {{ content }}