amp_base_theme 0.0.3 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 664c79d2ee3d5e93a1c02b0ecd7b7903e137e5817f6d7d49a28d43a955b2359e
4
- data.tar.gz: 577d2865fa50d68a893693a1df784e0cf478945925833c4ccdd3393b3fb2d481
3
+ metadata.gz: 73272bdcd8ab3af0ecf98ee90205e16464cadf2c80f6d69584c06e279a739af2
4
+ data.tar.gz: ddad2df50cce211bd1275897e7ae3f14eaf2680f2b645213d5ed0bf160e93404
5
5
  SHA512:
6
- metadata.gz: af73f7c2837ff595422d8770ee76c5453796d1e27f1ed4066e983ee0cc370d30b34b52fca9d3cb508211446c513ae63194d3f6c62f1eee9e84044aed6f6187c9
7
- data.tar.gz: a3e7b1b67c32f6fabe695afba7bbd10ba4d25a712056f4a0277a57635d6a12edf50446eeaee26a61da7b76525925cb6dd7e0847dfec4b6ab3389e0035aa210ef
6
+ metadata.gz: 3a6b4872ca20af82a900b76bfda40fda4dd4acf1c61e0ea0dc648d6557adf5e05c87b75e783ae101db7f6a813a5321b636645d7dc46db128b58d1fd89bff3154
7
+ data.tar.gz: 486a13b6ac6772eb8d922c25c5185ac12c824ebdd6ade1f9675dae5cb8cda7f9e8de14389115f555d642ae09efb8a831f4e5621c13ea6d712a8b9d2b8c4700c0
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 layout.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 layout.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,6 @@
1
+ ---
2
+ layout: amp-base
3
+ amp_type: 'story'
4
+ ---
5
+
6
+ {{ content }}
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: amp-base
3
+ amp_type: 'website'
4
+ ---
5
+
6
+ {{ content }}
@@ -1,4 +1,5 @@
1
1
  ---
2
+ layout: none
2
3
  permalink: "_headers"
3
4
  ---
4
5
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  layout: none
3
- permalink: "/feed.xml"
3
+ permalink: "feed.xml"
4
4
  ---
5
5
 
6
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  layout: none
3
- permalink: "/google-news.xml"
3
+ permalink: "google-news.xml"
4
4
  ---
5
5
 
6
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  layout: none
3
- permalink: "/humans.txt"
3
+ permalink: "humans.txt"
4
4
  ---
5
5
 
6
6
  /* TEAM */
@@ -1,6 +1,6 @@
1
1
  ---
2
- permalink: "/manifest.json"
3
2
  layout: none
3
+ permalink: "manifest.json"
4
4
  ---
5
5
 
6
6
  {
@@ -10,7 +10,7 @@ layout: none
10
10
  "display": "standalone",
11
11
  "theme_color": "{{ site.color }}",
12
12
  "background_color": "{{ site.background_color }}",
13
- "lang": "{{ site.lang | default: "de_DE" }}",
13
+ "lang": "{{ site.lang | default: "de-DE" }}",
14
14
  "scope": "{{ site.baseurl }}",
15
15
  "orientation": "portrait-primary",
16
16
  "description": "{{ site.description }}",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  layout: none
3
- permalink: "/robots.txt"
3
+ permalink: "robots.txt"
4
4
  ---
5
5
 
6
6
  User-agent: *
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  layout: none
3
- permalink: "/sitemap-pages.xml"
3
+ permalink: "sitemap-pages.xml"
4
4
  ---
5
5
 
6
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  layout: none
3
- permalink: "/sitemap-posts.xml"
3
+ permalink: "sitemap-posts.xml"
4
4
  ---
5
5
 
6
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  layout: none
3
- permalink: "/sitemap.xml"
3
+ permalink: "sitemap.xml"
4
4
  ---
5
5
 
6
6
  <?xml version="1.0" encoding="UTF-8"?>
@@ -1,6 +1,6 @@
1
1
  ---
2
- permalink: "/sw.html"
3
2
  layout: none
3
+ permalink: "sw.html"
4
4
  ---
5
5
 
6
6
  <!DOCTYPE html>
@@ -1,6 +1,6 @@
1
1
  ---
2
- permalink: "/sw.js"
3
2
  layout: none
3
+ permalink: "sw.js"
4
4
  ---
5
5
 
6
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.8.gem && gem contents amp_base_theme --version "=0.0.8" && gem push amp_base_theme-0.0.8.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.3
4
+ version: 0.0.8
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
@@ -46,14 +46,16 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - 404.md
49
+ - CHANGLELOG.md
49
50
  - LICENSE.txt
50
51
  - README.md
51
52
  - _data/amp_components.yaml
52
53
  - _data/pwa_ignore.yaml
54
+ - _includes/amp-story/body.html
53
55
  - _includes/analytics/cookie-consent.html
54
56
  - _includes/analytics/facebook-analytics.html
55
57
  - _includes/analytics/google-analytics.html
56
- - _includes/footer.html
58
+ - _includes/foot.html
57
59
  - _includes/head.html
58
60
  - _includes/head/amp-boilerplate.html
59
61
  - _includes/head/amp-components.html
@@ -61,21 +63,23 @@ files:
61
63
  - _includes/head/seo.html
62
64
  - _includes/head/structured-data.html
63
65
  - _includes/pwa/sw.html
66
+ - _layouts/amp-base.html
64
67
  - _layouts/compress.html
65
68
  - _layouts/default.html
66
- - _layouts/page.html
67
- - _layouts/post.html
68
- - meta/_headers
69
- - meta/feed.xml
70
- - meta/google-news.xml
71
- - meta/humans.txt
72
- - meta/robots.txt
73
- - meta/sitemap-pages.xml
74
- - meta/sitemap-posts.xml
75
- - meta/sitemap.xml
76
- - pwa/manifest.json
77
- - pwa/sw.html
78
- - pwa/sw.js
69
+ - _layouts/story.html
70
+ - _layouts/website.html
71
+ - assets/_headers
72
+ - assets/feed.xml
73
+ - assets/google-news.xml
74
+ - assets/humans.txt
75
+ - assets/manifest.json
76
+ - assets/robots.txt
77
+ - assets/sitemap-pages.xml
78
+ - assets/sitemap-posts.xml
79
+ - assets/sitemap.xml
80
+ - assets/sw.html
81
+ - assets/sw.js
82
+ - deploy.sh
79
83
  homepage: https://github.com/lukas-h/amp_base_theme
80
84
  licenses:
81
85
  - 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 }}