amp_base_theme 0.0.6 → 0.0.12

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: cc001805b5bb18e645aff10343360543e4a58e4b927058780e5387fa2853213d
4
- data.tar.gz: 9fb5566b8441d53c4b1ca3c8b1cf33223bd896b11d82dd2dd9c076a72763f233
3
+ metadata.gz: 125416c80d01d563546707a646eaa079258fc2a3bac3d57e9237f13314096e24
4
+ data.tar.gz: 9cb52b71a61331412de33275103ea5aee78345a0483f2403baf58e2ce8ad03d3
5
5
  SHA512:
6
- metadata.gz: 664798a70a22ceedcfdf3cbdd42c3fc701bc5c54875d85df87251358209b6caee4260de8d54dfeb34a6b5d996bc261e67841c2d7842c16070b7bae329eebd3e2
7
- data.tar.gz: e3c6a7e9e9770bb8eeaea3c36d26cf254add1bc924b0f9a29057afa4bdc3e0c7ea6d46da57f3ea1ab82ed279a9a78261e5d0d307b8e0736bf8f1484b03de4853
6
+ metadata.gz: be2797ed962fefbf71e8b86dd03766bc7b04cbecde4cfafa0c86509f1d37c0b26b483c5b76ace556f033751cbc8dec23086198373fca2ceab1d4c3877bcb0ba5
7
+ data.tar.gz: 1ca8c7a6fef240b908a9c15277b0d729cfbee57987ebbaff6c20404949141902df784b0f438170eb0894436013796a5a36eb84eeab87bdd90a9aabec5b37f476
@@ -1,4 +1,5 @@
1
1
  - name: amp-story
2
+ version: 1.0
2
3
  - name: amp-3d-gltf
3
4
  - name: amp-3q-player
4
5
  - name: amp-access-laterpay
@@ -2,5 +2,6 @@
2
2
  - sitemap-posts.xml
3
3
  - sitemap-pages.xml
4
4
  - google-news.xml
5
+ - feed.xml
5
6
  - robots.txt
6
7
  - humans.txt
@@ -2,6 +2,7 @@
2
2
  {% include head/seo.html %}
3
3
  {% include head/amp-boilerplate.html %}
4
4
  {% include head/amp-custom.html %}
5
- <script async src="https://cdn.ampproject.org/v0.js"></script>
5
+ <script async src="https://cdn.ampproject.org/v0.js"></script>
6
+ {% include head/google-fonts.html %}
6
7
  {% include head/amp-components.html %}
7
8
  </head>
@@ -40,6 +40,19 @@
40
40
  {% endif %}
41
41
  {% endif %}
42
42
 
43
+ {% if site.cookie_consent %}
44
+
45
+ {% if component_keys contains "amp-analytics" %}{% else %}
46
+
47
+ {% assign consent_comp = site.data.amp_components | where: "name", "amp-consent" %}
48
+ {% assign components = components | concat: consent_comp %}
49
+ {% assign comp_name = "amp-consent" | split: "" %}
50
+ {% assign component_keys = component_keys | concat: comp_name %}
51
+
52
+ {% endif %}
53
+
54
+ {% endif %}
55
+
43
56
  {% if site.pwa %}
44
57
  {% if component_keys contains "amp-install-serviceworker" %}{% else %}
45
58
 
@@ -1,9 +1,4 @@
1
- {% if site.google_fonts %}
2
1
 
3
- {% assign family_param = site.google_fonts | join: "|"" | replace: " ", "+" %}
4
- <link href="https://fonts.googleapis.com/css?family={{ family_param }}" rel="stylesheet">
5
-
6
- {% endif %}
7
2
 
8
3
  <style amp-custom>
9
4
 
@@ -0,0 +1,6 @@
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">
5
+
6
+ {% endif %}
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  layout: amp-base
3
- amp_type: 'website'
4
3
  ---
5
4
 
6
5
  {{ content }}
@@ -66,5 +66,4 @@ permalink: "manifest.json"
66
66
  "platform": "Web"
67
67
  }
68
68
  ],
69
- }
70
69
  }
@@ -7,7 +7,7 @@ permalink: "sitemap-pages.xml"
7
7
  <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
8
8
  {% assign documents = site.pages %}
9
9
  {% for p in documents %}
10
- {% if p.output == false and p.path contains "assets" %}
10
+ {% if p.output == false or p.path contains "assets" %}
11
11
  {% else %}
12
12
  {% assign u = p.url %}{% assign usize = u | size | minus: 1 %}
13
13
  {% assign u = u | slice: usize %}{% if u != '/' and u != 'l' and usize <= 1 %}{% assign x = p.url | append: '.html' %}{% else %}{% assign x = p.url %}{% endif %}
@@ -0,0 +1 @@
1
+ gem build amp_base_theme && sudo gem install amp_base_theme-0.0.12.gem && gem contents amp_base_theme --version "=0.0.12" && gem push amp_base_theme-0.0.12.gem
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.6
4
+ version: 0.0.12
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-08-01 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-data
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -60,14 +74,13 @@ files:
60
74
  - _includes/head/amp-boilerplate.html
61
75
  - _includes/head/amp-components.html
62
76
  - _includes/head/amp-custom.html
77
+ - _includes/head/google-fonts.html
63
78
  - _includes/head/seo.html
64
79
  - _includes/head/structured-data.html
65
80
  - _includes/pwa/sw.html
66
81
  - _layouts/amp-base.html
67
82
  - _layouts/compress.html
68
83
  - _layouts/default.html
69
- - _layouts/story.html
70
- - _layouts/website.html
71
84
  - assets/_headers
72
85
  - assets/feed.xml
73
86
  - assets/google-news.xml
@@ -79,6 +92,7 @@ files:
79
92
  - assets/sitemap.xml
80
93
  - assets/sw.html
81
94
  - assets/sw.js
95
+ - deploy.sh
82
96
  homepage: https://github.com/lukas-h/amp_base_theme
83
97
  licenses:
84
98
  - MIT
@@ -1,4 +0,0 @@
1
- ---
2
- layout: amp-base
3
- amp_type: 'story'
4
- ---
@@ -1,6 +0,0 @@
1
- ---
2
- layout: amp-base
3
- amp_type: 'website'
4
- ---
5
-
6
- {{ content }}