amp_base_theme 0.0.2 → 0.0.7

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: 32cd254b15ddf4459d20a053e38910cb1a6b12a27e414c33e804fe35610bb757
4
- data.tar.gz: 3178182a30a608f59201a0fe599a5077f6315d0c67e0213bb80246ef77615019
3
+ metadata.gz: f6ec9b83d8be07f199109eabff868d22cbeb1e5e02b47b16bd8b0cb6450ccb47
4
+ data.tar.gz: f1dfb9947ccf1156a9776cbe6d8cc9fef0cb5e3cbf5d48181166e5a8d1a8cb72
5
5
  SHA512:
6
- metadata.gz: 7a5c1393b7ff6beca60aa748273c3e1fe5fafb224a12c5f8b653a4eb0290b24d8230456e8c5b2b9a2d0b54b81d3da2fe6ebe5ef35fc86bd4fc57dd04966c404f
7
- data.tar.gz: 4687ed815f1db558dc992f69a9327374ab7ac482fdfe138cece7dccbbf6eb4e5288c6b30609c75c8488ce5f9d6161912192938d9a34c417714205ba42bac7a8e
6
+ metadata.gz: 29ae0979570bc44ea0182c32a933c55815d355415491edd3ecb5aa285b188a3a7f637bc741e25b47d5c1cf267762d291e4957b0de05aa0c21d91f9a96aca4701
7
+ data.tar.gz: f4dc80f85e046ef6731421a59aa339065254cd9cb0660cf7d7abd23ffb3425d25eee21a0a871cc4aef60051de703a08395bb7c3523fe1271d5a8c8656bf1d817
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 }}
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: none
3
+ permalink: "_headers"
4
+ ---
5
+
6
+ /*
7
+ access-control-allow-credentials: true
8
+ access-control-allow-headers: Access-Control-Allow-Origin, Access-Control-Allow-Credentials
9
+ access-control-allow-origin: *
@@ -0,0 +1,35 @@
1
+ ---
2
+ layout: none
3
+ permalink: "feed.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
7
+ <rss version="2.0"
8
+ xmlns:atom="http://www.w3.org/2005/Atom">
9
+ <channel>
10
+ <title>{{ site.title | xml_escape }}</title>
11
+ <description>{{ site.description | xml_escape }}</description>
12
+ <link>{{ site.url }}{{ site.baseurl }}/</link>
13
+ <atom:link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/rss+xml"/>
14
+ <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
15
+ <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
16
+ <generator>Jekyll v{{ jekyll.version }}</generator>
17
+ {% for post in site.posts limit: 25 %}
18
+ <item>
19
+ <title>{{ post.title | xml_escape }}</title>
20
+ <description>
21
+ {{ post.excerpt | xml_escape }}
22
+ <br />
23
+ <a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">Link</a>
24
+ </description>
25
+ <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
26
+ <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
27
+ <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
28
+ {% assign cats = post.categories | concat: post.tags %}
29
+ {% for cat in cats %}
30
+ <category>{{ cat | xml_escape }}</category>
31
+ {% endfor %}
32
+ </item>
33
+ {% endfor %}
34
+ </channel>
35
+ </rss>
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: none
3
+ permalink: "google-news.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
7
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
8
+ xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
9
+ {% for post in site.posts limit: 10 %}
10
+ <url>
11
+ <loc>{{ site.url }}{{ site.baseurl }}{{ post.url | cgi_escape | replace: '%2F', '/' }}</loc>
12
+ <news:news>
13
+ <news:publication>
14
+ <news:name>{{ site.title }}</news:name>
15
+ <news:language>de</news:language>
16
+ </news:publication>
17
+ <news:genres></news:genres>
18
+ <news:publication_date>{{ post.date | date: "%Y-%m-%d" }}</news:publication_date>
19
+ <news:title>{{ post.title | xml_escape }}</news:title>
20
+ {% assign cats = post.categories %}
21
+ {% assign cats = cats | concat: post.tags %}
22
+ <news:keywords>{{ cats | join: ', ' | xml_escape }}</news:keywords>
23
+ </news:news>
24
+ </url>
25
+ {% endfor %}
26
+ </urlset>
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: none
3
+ permalink: "humans.txt"
4
+ ---
5
+
6
+ /* TEAM */
7
+ Author: {{ site.author }}
8
+ Location: {{ site.location }}
9
+ {% if site.twitter %}Twitter: @{{ site.twitter }}{% endif %}
10
+
11
+ /* THANKS */
12
+
13
+
14
+ /* SITE */
15
+ Last update: {{ site.time | date: "%Y/%m/%d" }}
16
+ Standards: HTML5, CSS3, ...
17
+ Components: AMP
18
+ Software: Jekyll, SASS
@@ -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 }}",
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: none
3
+ permalink: "robots.txt"
4
+ ---
5
+
6
+ User-agent: *
7
+ Disallow:
8
+ Sitemap: {{ site.url }}{{ site.baseurl }}/sitemap.xml
9
+ Sitemap: {{ site.url }}{{ site.baseurl }}/google-news.xml
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: none
3
+ permalink: "sitemap-pages.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
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
+ {% assign documents = site.pages %}
9
+ {% for p in documents %}
10
+ {% if p.output == false and p.path contains "assets" %}
11
+ {% else %}
12
+ {% assign u = p.url %}{% assign usize = u | size | minus: 1 %}
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 %}
14
+ <url>
15
+ <loc>{{ site.url }}{{ site.baseurl }}{{ x | replace: '&', '&amp;' }}</loc>
16
+ {% if p.lastmod == null %}
17
+ {% if p.date == null %}
18
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
19
+ {% else %}
20
+ <lastmod>{{ p.date | date_to_xmlschema }}</lastmod>
21
+ {% endif %}
22
+ {% else %}
23
+ <lastmod>{{ p.lastmod | date_to_xmlschema }}</lastmod>
24
+ {% endif %}
25
+ <changefreq>weekly</changefreq>
26
+ <priority>1.0</priority>
27
+ </url>
28
+ {% endif %}
29
+ {% endfor %}
30
+ </urlset>
@@ -0,0 +1,29 @@
1
+ ---
2
+ layout: none
3
+ permalink: "sitemap-posts.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
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
+ {% assign documents = site.posts %}
9
+ {% for p in documents %}
10
+ {% if p.output != false %}
11
+ {% assign u = p.url %}{% assign usize = u | size | minus: 1 %}
12
+ {% 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 %}
13
+ <url>
14
+ <loc>{{ site.url }}{{ site.baseurl }}{{ x | replace: '&', '&amp;' }}</loc>
15
+ {% if p.lastmod == null %}
16
+ {% if p.date == null %}
17
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
18
+ {% else %}
19
+ <lastmod>{{ p.date | date_to_xmlschema }}</lastmod>
20
+ {% endif %}
21
+ {% else %}
22
+ <lastmod>{{ p.lastmod | date_to_xmlschema }}</lastmod>
23
+ {% endif %}
24
+ <changefreq>weekly</changefreq>
25
+ <priority>1.0</priority>
26
+ </url>
27
+ {% endif %}
28
+ {% endfor %}
29
+ </urlset>
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: none
3
+ permalink: "sitemap.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
7
+ <sitemapindex 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
+ <sitemap>
9
+ <loc>{{ site.url }}{{ site.baseurl }}/sitemap-posts.xml</loc>
10
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
11
+ </sitemap>
12
+ <sitemap>
13
+ <loc>{{ site.url }}{{ site.baseurl }}/sitemap-pages.xml</loc>
14
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
15
+ </sitemap>
16
+ <sitemap>
17
+ <loc>{{ site.url }}{{ site.baseurl }}/google-news.xml</loc>
18
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
19
+ </sitemap>
20
+ </sitemapindex>
@@ -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.7.gem && gem contents amp_base_theme --version "=0.0.7" && gem push amp_base_theme-0.0.7.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.2
4
+ version: 0.0.7
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
@@ -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: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description:
28
42
  email:
29
43
  - lukas@himsel.me
@@ -32,14 +46,16 @@ extensions: []
32
46
  extra_rdoc_files: []
33
47
  files:
34
48
  - 404.md
49
+ - CHANGLELOG.md
35
50
  - LICENSE.txt
36
51
  - README.md
37
52
  - _data/amp_components.yaml
38
53
  - _data/pwa_ignore.yaml
54
+ - _includes/amp-story/body.html
39
55
  - _includes/analytics/cookie-consent.html
40
56
  - _includes/analytics/facebook-analytics.html
41
57
  - _includes/analytics/google-analytics.html
42
- - _includes/footer.html
58
+ - _includes/foot.html
43
59
  - _includes/head.html
44
60
  - _includes/head/amp-boilerplate.html
45
61
  - _includes/head/amp-components.html
@@ -47,13 +63,23 @@ files:
47
63
  - _includes/head/seo.html
48
64
  - _includes/head/structured-data.html
49
65
  - _includes/pwa/sw.html
66
+ - _layouts/amp-base.html
50
67
  - _layouts/compress.html
51
68
  - _layouts/default.html
52
- - _layouts/page.html
53
- - _layouts/post.html
54
- - pwa/manifest.json
55
- - pwa/sw.html
56
- - 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
57
83
  homepage: https://github.com/lukas-h/amp_base_theme
58
84
  licenses:
59
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 }}