amp_base_theme 0.0.4 → 0.0.10

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: af6ee181b277eece147d3c0283b5f79e878c62b7acd643cec3f7170b54a3e890
4
- data.tar.gz: 218c5dd190bb997eb1738bfff7a0d38ac970d376d1175206cb80cf8f4edc2aa7
3
+ metadata.gz: b132f7984c3ab6fe35b0d2e0726ba0b096c827fd91d60b4287ba1600198077b4
4
+ data.tar.gz: a36e10dbcbbfe72ee06be370aeda19da1fc3903009afc62b8bc86f062fd2ce36
5
5
  SHA512:
6
- metadata.gz: 724241038addc1103b38892f2fddad95864f1efaf14082ccb3821bbf96c6de7c0984829da832654051f69acf766486860c474d7d20311b1b03d1ae8d801cbd62
7
- data.tar.gz: bb8a4cca546178cfc44eaa01c1f6316f0ef0b504ba40e6745eec79c2df78b1529ff6900b901a6f373cd36d7cf91d11aaccad0e2b40abe0a4a7e79fd73db5e259
6
+ metadata.gz: 3c2e96321419707d6361b531b45f0dbfeaf05065ef5a3e33e05be717be2ee8d9df53a5970f760071511dfc2a59d8e874fc7e59178ad784eb3ac8b3d54cf56a37
7
+ data.tar.gz: 13062f635e985e4cae78e4bd8ed0f119ff8c9c48182dd4ed5abbe8c7ef2560dd74a48d1643ca44b44bd4e93d3150b4517bc7980dfc25fc0fa028858a6146c824
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,5 @@
1
+ - name: amp-story
2
+ version: 1.0
1
3
  - name: amp-3d-gltf
2
4
  - name: amp-3q-player
3
5
  - name: amp-access-laterpay
File without changes
File without changes
@@ -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>
@@ -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,5 @@
1
- <style amp-custom>
2
1
 
2
+
3
+ <style amp-custom>
4
+
3
5
  </style>
@@ -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 %}
@@ -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,5 @@
1
1
  ---
2
- layout: compress
2
+ layout: amp-base
3
3
  ---
4
4
 
5
- <!doctype html>
6
- <html ⚡>
7
- {% include head.html %}
8
-
9
- <body>
10
- {{ content }}
11
- {% include footer.html %}
12
- </body>
13
-
14
- </html>
5
+ {{ content }}
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "_headers"
3
4
  ---
4
5
 
5
6
  /*
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "feed.xml"
3
4
  ---
4
5
 
5
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "google-news.xml"
3
4
  ---
4
5
 
5
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "humans.txt"
3
4
  ---
4
5
 
5
6
  /* TEAM */
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "manifest.json"
3
4
  ---
4
5
 
5
6
  {
@@ -9,7 +10,7 @@ layout: none
9
10
  "display": "standalone",
10
11
  "theme_color": "{{ site.color }}",
11
12
  "background_color": "{{ site.background_color }}",
12
- "lang": "{{ site.lang | default: "de_DE" }}",
13
+ "lang": "{{ site.lang | default: "de-DE" }}",
13
14
  "scope": "{{ site.baseurl }}",
14
15
  "orientation": "portrait-primary",
15
16
  "description": "{{ site.description }}",
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "robots.txt"
3
4
  ---
4
5
 
5
6
  User-agent: *
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "sitemap-pages.xml"
3
4
  ---
4
5
 
5
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "sitemap-posts.xml"
3
4
  ---
4
5
 
5
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "sitemap.xml"
3
4
  ---
4
5
 
5
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "sw.html"
3
4
  ---
4
5
 
5
6
  <!DOCTYPE html>
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: none
3
+ permalink: "sw.js"
3
4
  ---
4
5
 
5
6
  const version = '{{ site.time | date: '%Y%m%d%H%M%S' }}';
@@ -0,0 +1 @@
1
+ gem build amp_base_theme && sudo gem install amp_base_theme-0.0.10.gem && gem contents amp_base_theme --version "=0.0.10" && gem push amp_base_theme-0.0.10.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.4
4
+ version: 0.0.10
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,32 +51,34 @@ files:
51
51
  - README.md
52
52
  - _data/amp_components.yaml
53
53
  - _data/pwa_ignore.yaml
54
- - _headers
54
+ - _includes/amp-story/body.html
55
55
  - _includes/analytics/cookie-consent.html
56
56
  - _includes/analytics/facebook-analytics.html
57
57
  - _includes/analytics/google-analytics.html
58
- - _includes/footer.html
58
+ - _includes/foot.html
59
59
  - _includes/head.html
60
60
  - _includes/head/amp-boilerplate.html
61
61
  - _includes/head/amp-components.html
62
62
  - _includes/head/amp-custom.html
63
+ - _includes/head/google-fonts.html
63
64
  - _includes/head/seo.html
64
65
  - _includes/head/structured-data.html
65
66
  - _includes/pwa/sw.html
67
+ - _layouts/amp-base.html
66
68
  - _layouts/compress.html
67
69
  - _layouts/default.html
68
- - _layouts/page.html
69
- - _layouts/post.html
70
- - feed.xml
71
- - google-news.xml
72
- - humans.txt
73
- - manifest.json
74
- - robots.txt
75
- - sitemap-pages.xml
76
- - sitemap-posts.xml
77
- - sitemap.xml
78
- - sw.html
79
- - sw.js
70
+ - assets/_headers
71
+ - assets/feed.xml
72
+ - assets/google-news.xml
73
+ - assets/humans.txt
74
+ - assets/manifest.json
75
+ - assets/robots.txt
76
+ - assets/sitemap-pages.xml
77
+ - assets/sitemap-posts.xml
78
+ - assets/sitemap.xml
79
+ - assets/sw.html
80
+ - assets/sw.js
81
+ - deploy.sh
80
82
  homepage: https://github.com/lukas-h/amp_base_theme
81
83
  licenses:
82
84
  - MIT
@@ -1,5 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {{ content }}
@@ -1,5 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {{ content }}